﻿<?xml version="1.0" encoding="utf-8"?><Type Name="LicFileLicenseProvider" FullName="System.ComponentModel.LicFileLicenseProvider"><TypeSignature Language="C#" Value="public class LicFileLicenseProvider : System.ComponentModel.LicenseProvider" Maintainer="auto" /><TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit LicFileLicenseProvider extends System.ComponentModel.LicenseProvider" /><AssemblyInfo><AssemblyName>System</AssemblyName><AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey><AssemblyVersion>1.0.3300.0</AssemblyVersion><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the &lt;link location="node:gtk-sharp/programming/threads"&gt;Gtk# Thread Programming&lt;/link&gt; for details.</ThreadSafetyStatement><Base><BaseTypeName>System.ComponentModel.LicenseProvider</BaseTypeName></Base><Interfaces /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="T:System.ComponentModel.LicFileLicenseProvider" /> offers <see cref="M:System.ComponentModel.LicFileLicenseProvider.GetLicense(System.ComponentModel.LicenseContext,System.Type,System.Object,System.Boolean)" /> and <see cref="M:System.ComponentModel.LicFileLicenseProvider.IsKeyValid(System.String,System.Type)" /> methods. The <see cref="M:System.ComponentModel.LicFileLicenseProvider.IsKeyValid(System.String,System.Type)" /> method determines whether the <see cref="P:System.ComponentModel.License.LicenseKey" /> retrieved by the <see cref="M:System.ComponentModel.LicFileLicenseProvider.GetLicense(System.ComponentModel.LicenseContext,System.Type,System.Object,System.Boolean)" /> method is valid. When you inherit from this class, you can override the <see cref="M:System.ComponentModel.LicFileLicenseProvider.IsKeyValid(System.String,System.Type)" /> method to provide your own validation logic.</para><para>This class exists to provide similar licensing functionality to COM licensing and uses text license files.</para><para>For more information on licensing, see <format type="text/html"><a href="8e66c1ed-a445-4b26-8185-990b6e2bbd57">How to: License Components and Controls</a></format>.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Provides an implementation of a <see cref="T:System.ComponentModel.LicenseProvider" />. The provider works in a similar fashion to the Microsoft .NET Framework standard licensing model.</para></summary></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public LicFileLicenseProvider ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue /><Parameters /><Docs><remarks>To be added</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new instance of the <see cref="T:System.ComponentModel.LicFileLicenseProvider" /> class. </para></summary></Docs></Member><Member MemberName="GetKey"><MemberSignature Language="C#" Value="protected virtual string GetKey (Type type);" /><MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance string GetKey(class System.Type type) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Parameters><Parameter Name="type" Type="System.Type" /></Parameters><Docs><remarks>To be added</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns a key for the specified type.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A confirmation that the <paramref name="type" /> parameter is licensed.</para></returns><param name="type"><attribution license="cc4" from="Microsoft" modified="false" />The object type to return the key. </param></Docs></Member><Member MemberName="GetLicense"><MemberSignature Language="C#" Value="public override System.ComponentModel.License GetLicense (System.ComponentModel.LicenseContext context, Type type, object instance, bool allowExceptions);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance class System.ComponentModel.License GetLicense(class System.ComponentModel.LicenseContext context, class System.Type type, object instance, bool allowExceptions) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.ComponentModel.License</ReturnType></ReturnValue><Parameters><Parameter Name="context" Type="System.ComponentModel.LicenseContext" /><Parameter Name="type" Type="System.Type" /><Parameter Name="instance" Type="System.Object" /><Parameter Name="allowExceptions" Type="System.Boolean" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>At design time, the <see cref="M:System.ComponentModel.LicFileLicenseProvider.GetLicense(System.ComponentModel.LicenseContext,System.Type,System.Object,System.Boolean)" /> method looks for a license file named myClassName.LIC, where myClassName is the <see cref="P:System.Type.FullName" /> of the component to create. This file must be in the same directory as the .dll file that contains the component.</para><para>Next, this method checks the first line of the license file against a key specified in the <see cref="M:System.ComponentModel.LicFileLicenseProvider.IsKeyValid(System.String,System.Type)" /> method. If the key is valid, this line is used as the <see cref="P:System.ComponentModel.License.LicenseKey" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns a license for the instance of the component, if one is available.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A valid <see cref="T:System.ComponentModel.License" />. If this method cannot find a valid <see cref="T:System.ComponentModel.License" /> or a valid <paramref name="context" /> parameter, it returns null.</para></returns><param name="context"><attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.ComponentModel.LicenseContext" /> that specifies where you can use the licensed object. </param><param name="type"><attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.Type" /> that represents the component requesting the <see cref="T:System.ComponentModel.License" />. </param><param name="instance"><attribution license="cc4" from="Microsoft" modified="false" />An object that requests the <see cref="T:System.ComponentModel.License" />. </param><param name="allowExceptions"><attribution license="cc4" from="Microsoft" modified="false" />true if a <see cref="T:System.ComponentModel.LicenseException" /> should be thrown when a component cannot be granted a license; otherwise, false. </param></Docs></Member><Member MemberName="IsKeyValid"><MemberSignature Language="C#" Value="protected virtual bool IsKeyValid (string key, Type type);" /><MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance bool IsKeyValid(string key, class System.Type type) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="key" Type="System.String" /><Parameter Name="type" Type="System.Type" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This method checks the key against the phrase: " myClassName is a licensed component. ", where myClassName is the <see cref="P:System.Type.FullName" /> of the component you want to create.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Determines whether the key that the <see cref="M:System.ComponentModel.LicFileLicenseProvider.GetLicense(System.ComponentModel.LicenseContext,System.Type,System.Object,System.Boolean)" /> method retrieves is valid for the specified type.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>true if the key is a valid <see cref="P:System.ComponentModel.License.LicenseKey" /> for the specified type; otherwise, false.</para></returns><param name="key"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="P:System.ComponentModel.License.LicenseKey" /> to check. </param><param name="type"><attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.Type" /> that represents the component requesting the <see cref="T:System.ComponentModel.License" />. </param></Docs></Member></Members></Type>