> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XStoreAddonLicense

> XStoreAddonLicense

# XStoreAddonLicense

描述附加元件授權。

## 語法

```cpp theme={null}
typedef struct XStoreAddonLicense {  
    char skuStoreId[STORE_SKU_ID_SIZE];  
    char inAppOfferToken[IN_APP_OFFER_TOKEN_MAX_SIZE];  
    bool isActive;  
    time_t expirationDate;  
} XStoreAddonLicense  
```

### 成員

*skuStoreId*\
類型：char\[STORE\_SKU\_ID\_SIZE]

授權的 SKU 識別碼。

*inAppOfferToken*\
類型：char\[IN\_APP\_OFFER\_TOKEN\_MAX\_SIZE]

由遊戲定義的優惠權杖，可讓您在內部對應項目。例如：com.company.product.itemname。

*isActive*\
類型：bool

指出授權是否為使用中。

*expirationDate*\
類型：time\_t

授權的到期日。

## 備註

附加元件是您在遊戲內容中提供給客戶的產品或功能：例如，遊戲中使用的貨幣、遊戲的新地圖或武器、無廣告玩遊戲的能力。每個遊戲和附加元件都有相關聯的授權，指出使用者是否有權遊玩該遊戲或使用該附加元件。如果使用者有權以試用版形式遊玩該遊戲或使用該附加元件，授權也會提供有關試用版的其他資訊。**XStoreAddonLicense** 是 [XStoreQueryAddOnLicensesResult](/zh-TW/reference/system/xstore/functions/xstorequeryaddonlicensesresult) 函式的參數。

## 需求

**標頭：** XStore.h (包含在 XGameRuntime.h 中)

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[XStore](/zh-TW/reference/system/xstore/xstore_members)\
[XStoreQueryAddOnLicensesResult](/zh-TW/reference/system/xstore/functions/xstorequeryaddonlicensesresult)


## Related topics

- [XStoreAddonLicense](/reference/system/xstore/structs/xstoreaddonlicense.md)
- [XStoreQueryAddOnLicensesResult](/reference/system/xstore/functions/xstorequeryaddonlicensesresult.md)
- [XStore](/reference/system/xstore/xstore_members.md)
