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 指定你何時可以使用授權物件的 A。

例外狀況

CurrentContext該房產目前已上鎖,無法更改。

備註

當使用者請求有效的 License時,必須向方法提供 的LicenseLicenseProvider.GetLicense有效上下文。 LicenseContext此性質所回傳的數值應傳遞給所有LicenseProvider類別。

適用於

另請參閱