LicenseManager::IsValid Method (Type^, Object^, License^%)
Determines whether a valid license can be granted for the specified instance of the type. This method creates a valid License.
Assembly: System (in System.dll)
public: static bool IsValid( Type^ type, Object^ instance, [OutAttribute] License^% license )
Parameters
- type
-
Type:
System::Type^
A Type that represents the type of object that requests the license.
- instance
-
Type:
System::Object^
An object of the specified type or a type derived from the specified type.
- license
-
Type:
System.ComponentModel::License^%
A License that is a valid license, or null if a valid license cannot be granted.
The IsValid method returns true when the type parameter is not licensed, or when it is licensed and the license parameter is valid.
This method does not throw a LicenseException when it cannot grant a valid License. The Validate method throws exceptions.
If the license parameter is not null after this call, the object asking for a License must dispose of the license by calling the Dispose method when the object is disposed of or finalized.
Available since 1.1