Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​ComponentModel.​LicFileLicenseProvider

Assembly: System.ComponentModel.TypeConverter

Inheritance: object → LicenseProvider → LicFileLicenseProvider

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.

Methods

protected string
GetKey​(Type type)
Returns a key for the specified type.
Returns A confirmation that the <paramref name="type" /> parameter is licensed.
type The object type to return the key.
public License
GetLicense​(LicenseContext context, Type type, object instance, bool allowExceptions)
Returns a license for the instance of the component, if one is available.
Returns 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 <see langword="null" /> .
context A <see cref="T:System.ComponentModel.LicenseContext" /> that specifies where you can use the licensed object.
type A <see cref="T:System.Type" /> that represents the component requesting the <see cref="T:System.ComponentModel.License" /> .
instance An object that requests the <see cref="T:System.ComponentModel.License" /> .
allowExceptions <see langword="true" /> if a <see cref="T:System.ComponentModel.LicenseException" /> should be thrown when a component cannot be granted a license; otherwise, <see langword="false" /> .
protected bool
IsKeyValid​(string key, Type type)
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.
Returns <see langword="true" /> if the key is a valid <see cref="P:System.ComponentModel.License.LicenseKey" /> for the specified type; otherwise, <see langword="false" /> .
key The <see cref="P:System.ComponentModel.License.LicenseKey" /> to check.
type A <see cref="T:System.Type" /> that represents the component requesting the <see cref="T:System.ComponentModel.License" /> .
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object