LicenseManager.Validate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether a license can be granted.
Overloads
Validate(Type) |
Determines whether a license can be granted for the specified type. |
Validate(Type, Object) |
Determines whether a license can be granted for the instance of the specified type. |
Validate(Type)
- Source:
- LicenseManager.cs
- Source:
- LicenseManager.cs
- Source:
- LicenseManager.cs
Determines whether a license can be granted for the specified type.
public:
static void Validate(Type ^ type);
public static void Validate (Type type);
static member Validate : Type -> unit
Public Shared Sub Validate (type As Type)
Parameters
Exceptions
A License cannot be granted.
Remarks
This method throws a LicenseException when a valid License cannot be granted. The IsValid method does not throw an exception.
See also
- License
- LicenseContext
- LicenseException
- LicenseProvider
- LicenseProviderAttribute
- LicFileLicenseProvider
- LicenseUsageMode
Applies to
Validate(Type, Object)
- Source:
- LicenseManager.cs
- Source:
- LicenseManager.cs
- Source:
- LicenseManager.cs
Determines whether a license can be granted for the instance of the specified type.
public:
static System::ComponentModel::License ^ Validate(Type ^ type, System::Object ^ instance);
public static System.ComponentModel.License Validate (Type type, object instance);
public static System.ComponentModel.License? Validate (Type type, object? instance);
static member Validate : Type * obj -> System.ComponentModel.License
Public Shared Function Validate (type As Type, instance As Object) As License
Parameters
Returns
A valid License.
Exceptions
The type is licensed, but a License cannot be granted.
Remarks
This method throws a LicenseException when a valid License cannot be granted. The IsValid method does not throw an exception.
All objects asking for a License must dispose of the license by calling the Dispose method when the object is disposed of or finalized.
See also
- License
- LicenseContext
- LicenseException
- LicenseProvider
- LicenseProviderAttribute
- LicFileLicenseProvider
- LicenseUsageMode