LicFileLicenseProvider::IsKeyValid Method (String^, Type^)
.NET Framework (current version)
Determines whether the key that the GetLicense method retrieves is valid for the specified type.
Assembly: System (in System.dll)
Parameters
- key
-
Type:
System::String^
The LicenseKey to check.
- type
-
Type:
System::Type^
A Type that represents the component requesting the License.
Return Value
Type: System::Booleantrue if the key is a valid LicenseKey for the specified type; otherwise, false.
This method checks the key against the phrase: " myClassName is a licensed component. ", where myClassName 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.
.NET Framework
Available since 1.1
Available since 1.1
Show: