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.IsValid (Type)

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

[Visual Basic]
Overloads Public Shared Function IsValid( _
   ByVal type As Type _
) As Boolean
[C#]
public static bool IsValid(
   Type type
);
[C++]
public: static bool IsValid(
   Type* type
);
[JScript]
public static function IsValid(
   type : Type
) : Boolean;

Parameters

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

Return Value

true if a valid license can be granted; otherwise, false.

Remarks

IsValid will return true when the type is either not licensed, or is licensed and the license is valid.

This method does not throw a LicenseException when it cannot grant a valid License. The Validate method throws exceptions.

See Also

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