LicenseManager.CurrentContext 屬性

定義

取得或設定目前的 LicenseContext,它會指定何時可以使用授權物件。

public:
 static property System::ComponentModel::LicenseContext ^ CurrentContext { System::ComponentModel::LicenseContext ^ get(); void set(System::ComponentModel::LicenseContext ^ value); };
public static System.ComponentModel.LicenseContext CurrentContext { get; set; }
static member CurrentContext : System.ComponentModel.LicenseContext with get, set
Public Shared Property CurrentContext As LicenseContext

屬性值

LicenseContext,指定何時可以使用授權物件。

例外狀況

CurrentContext 屬性目前是鎖定的而且無法變更。

備註

當使用者要求有效的 License時,用戶必須提供 對方法有效的LicenseProvider.GetLicense內容LicenseLicenseContext這個屬性傳回的 應該傳遞至所有LicenseProvider類別。

適用於

另請參閱