語言

StoreLicense 類別

定義

提供與目前應用程式相關的耐用外掛的授權資訊。

public ref class StoreLicense sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Services.Store.StoreContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class StoreLicense final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Services.Store.StoreContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class StoreLicense
Public NotInheritable Class StoreLicense
繼承
Object Platform::Object IInspectable StoreLicense
屬性

Windows 需求

規格需求 Description
裝置系列
Windows 10 Anniversary Edition (已於 10.0.14393.0 引進)
API contract
Windows.Services.Store.StoreContract (已於 v1.0 引進)

備註

要取得目前應用程式耐用外掛的 StoreLicense 物件,請使用 StoreAppLicense.AddOnLicenses 屬性。 此屬性僅包含仍有效的附加元件授權,並賦予現有使用者使用該附加元件的權利。 當附加元件授權到期或不再有效時,該授權將不再出現在 StoreAppLicense.AddOnLicenses 集合中。

屬性

名稱 Description
ExpirationDate

會取得附加授權的到期日和時間。

ExtendedJsonData

取得完整的授權資料,格式為 JSON。

InAppOfferToken

輸入附加元件的產品 ID。

IsActive

此特性保留以供未來使用,並非打算用於當前版本。 目前,它總是回傳為真。

SkuStoreId

從 Microsoft Store 目錄取得授權附加 SKU 的商店 ID。

適用於