Επεξεργασία

Κοινή χρήση μέσω


LicenseManager.Validate Method

Definition

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

type
Type

A Type that represents the type of object that requests the license.

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

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

type
Type

A Type that represents the type of object that requests the license.

instance
Object

An Object of the specified type or a type derived from the specified type.

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

Applies to