System.ComponentModel.LicFileLicenseProvider Class

Provides an implementation of a LicenseProvider. The provider works in a similar fashion to the Microsoft .NET Framework standard licensing model.

See Also: LicFileLicenseProvider


public class LicFileLicenseProvider : LicenseProvider


The LicFileLicenseProvider offers LicFileLicenseProvider.GetLicense(LicenseContext,Type,Object,Boolean) and LicFileLicenseProvider.IsKeyValid(String,Type) methods. The LicFileLicenseProvider.IsKeyValid(String,Type) method determines whether the License.LicenseKey retrieved by the LicFileLicenseProvider.GetLicense(LicenseContext,Type,Object,Boolean) method is valid. When you inherit from this class, you can override the LicFileLicenseProvider.IsKeyValid(String,Type) method to provide your own validation logic.

This class exists to provide similar licensing functionality to COM licensing and uses text license files.

For more information on licensing, see How to: License Components and Controls.


Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,,

The members of System.ComponentModel.LicFileLicenseProvider are listed below.

See Also: LicenseProvider

Public Constructors

Initializes a new instance of the LicFileLicenseProvider class.

Public Methods

GetLicense(LicenseContext, Type, Object, Boolean) : License

Returns a license for the instance of the component, if one is available.

Protected Methods

GetKey(Type) : String

Returns a key for the specified type.

IsKeyValid(String, Type) : Boolean

Determines whether the key that the LicFileLicenseProvider.GetLicense(LicenseContext,Type,Object,Boolean) method retrieves is valid for the specified type.