NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

LicenseManager.Validate (Type)

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

[Visual Basic]
Overloads Public Shared Sub Validate( _
   ByVal type As Type _
)
[C#]
public static void Validate(
   Type type
);
[C++]
public: static void Validate(
   Type* type
);
[JScript]
public static function Validate(
   type : Type
);

Parameters

type
A Type that represents the type of object that is requesting the license.

Exceptions

Exception Type Condition
LicenseException A License cannot be granted.

Remarks

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

See Also

LicenseManager Class | LicenseManager Members | System.ComponentModel Namespace | LicenseManager.Validate Overload List | License | LicenseContext | LicenseException | LicenseProvider | LicenseProviderAttribute | LicFileLicenseProvider | LicenseUsageMode