指定した型のインスタンスに対して、ライセンスを与えることができるかどうかを判断します。
Overloads Public Shared Function Validate( _
ByVal type As Type, _ ByVal instance As Object _) As License
[C#]
public static License Validate(Typetype,objectinstance);
[C++]
public: static License* Validate(Type* type,Object* instance);
[JScript]
public static function Validate(
type : Type,instance : Object) : License;
パラメータ
戻り値
有効な License 。
例外
| 例外の種類 | 条件 |
|---|---|
| LicenseException | 型はライセンス付きですが、 License を与えることができませんでした。 |
解説
有効な License を与えることができない場合、このメソッドは LicenseException をスローします。 IsValid は例外をスローしません。
License を要求するすべてのオブジェクトは、オブジェクトが破棄または終了されたときに、 Dispose メソッドを呼び出してライセンスを破棄する必要があります。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
LicenseManager クラス | LicenseManager メンバ | System.ComponentModel 名前空間 | LicenseManager.Validate オーバーロードの一覧 | License | LicenseContext | LicenseException | LicenseProvider | LicenseProviderAttribute | LicFileLicenseProvider | LicenseUsageMode