LicenseManager.Validate LicenseManager.Validate LicenseManager.Validate Method

Definition

Determines whether a license can be granted.

Overloads

Validate(Type) Validate(Type) Validate(Type)

Determines whether a license can be granted for the specified type.

Validate(Type, Object) Validate(Type, Object) Validate(Type, Object)

Determines whether a license can be granted for the instance of the specified type.

Validate(Type) Validate(Type) Validate(Type)

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

Parameters

type
Type Type Type

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

Exceptions

Remarks

This method throws a LicenseException when a valid License cannot be granted. The IsValid method does not throw an exception.

See also

Validate(Type, Object) Validate(Type, Object) Validate(Type, Object)

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);
static member Validate : Type * obj -> System.ComponentModel.License

Parameters

type
Type Type Type

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

instance
Object Object Object

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

Returns

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