ライセンス付きのオブジェクトをいつ使用できるかを指定する現在の LicenseContext を取得または設定します。
名前空間: System.ComponentModel
アセンブリ: System (system.dll 内)
構文
'宣言
Public Shared Property CurrentContext As LicenseContext
'使用
Dim value As LicenseContext
value = LicenseManager.CurrentContext
LicenseManager.CurrentContext = value
public static LicenseContext CurrentContext { get; set; }
public:
static property LicenseContext^ CurrentContext {
LicenseContext^ get ();
void set (LicenseContext^ value);
}
/** @property */
public static LicenseContext get_CurrentContext ()
/** @property */
public static void set_CurrentContext (LicenseContext value)
public static function get CurrentContext () : LicenseContext
public static function set CurrentContext (value : LicenseContext)
プロパティ値
ライセンス付きのオブジェクトをいつ使用できるかを指定する LicenseContext。
例外
例外の種類 | 条件 |
---|---|
CurrentContext プロパティは、現在ロックされており、変更できません。 |
解説
有効な License を要求する場合は、その License が有効となるコンテキストを LicenseProvider.GetLicense メソッドに対して指定する必要があります。このプロパティによって返される LicenseContext は、すべての LicenseProvider クラスに渡されます。
プラットフォーム
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 2.0、1.1、1.0
参照
関連項目
LicenseManager クラス
LicenseManager メンバ
System.ComponentModel 名前空間
License クラス
LicenseContext クラス
LicenseException クラス
LicenseProvider
LicenseProviderAttribute
LicFileLicenseProvider
LicenseUsageMode