LicenseManager.CurrentContext 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 當前 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類別。