Determines if the key retrieved by the GetLicense method is valid for the specified type.
[Visual Basic] Overridable Protected Function IsKeyValid( _ ByVal key As String, _ ByVal type As Type _ ) As Boolean [C#] protected virtual bool IsKeyValid( string key, Type type ); [C++] protected: virtual bool IsKeyValid( String* key, Type* type ); [JScript] protected function IsKeyValid( key : String, type : Type ) : Boolean;
true if the key is a valid LicenseKey for the specified type; otherwise, false.
This method checks the key against the phrase: "className is a licensed component." where className is the FullName of the component you want to create.
Notes to Inheritors: When you inherit from this class, you can override this method to provide your own validation logic.
LicFileLicenseProvider Class | LicFileLicenseProvider Members | System.ComponentModel Namespace | License | LicenseContext | LicenseException | LicenseManager | LicenseProvider | LicenseProviderAttribute | LicFileLicenseProvider | LicenseUsageMode