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

# XStoreCanLicenseStatus

> XStoreCanLicenseStatus

# XStoreCanLicenseStatus

表示使用者是否能夠取得套件的授權。

## 語法

```cpp theme={null}
enum class XStoreCanLicenseStatus  : uint32_t  
{  
    NotLicensableToUser = 0,  
    Licensable = 1,  
    LicenseActionNotApplicableToProduct = 2,
}  
```

## 常數

| 常數 | 描述 |
| - | - |
| NotLicensableToUser | 無法將此套件授權給使用者。 |
| Licensable | 可以將此套件授權給使用者。 |
| LicenseActionNotApplicableToProduct | 此產品無法單獨授權。 |

## 備註

此列舉表示套件是否可以透過呼叫 [XStoreCanAcquireLicenseForStoreIdAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync.md) 或 [XStoreCanAcquireLicenseForPackageAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorecanacquirelicenseforpackageasync.md) 取得授權。可授權狀態可從其各自的傳回函式結果中取得。**XStoreCanLicenseStatus** 是 [XStoreCanAcquireLicenseResult](https://docs.xbox.com/zh-TW/reference/system/xstore/structs/xstorecanacquirelicenseresult.md) 結構的成員。

## 需求

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

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

## 另請參閱

[XStore](https://docs.xbox.com/zh-TW/reference/system/xstore/xstore_members.md)\
[XStoreCanAcquireLicenseResult](https://docs.xbox.com/zh-TW/reference/system/xstore/structs/xstorecanacquirelicenseresult.md)\
[XStoreCanAcquireLicenseForPackageAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorecanacquirelicenseforpackageasync.md)\
[XStoreCanAcquireLicenseForStoreIdAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync.md)


## Related topics

- [XStoreCanAcquireLicenseResult](https://docs.xbox.com/zh-TW/reference/system/xstore/structs/xstorecanacquirelicenseresult.md)
- [XStore (API 內容)](https://docs.xbox.com/zh-TW/reference/system/xstore/xstore_members.md)
- [授予玩家附加元件內容的存取權](https://docs.xbox.com/zh-TW/publishing/xstore-commerce/xstore-granting-access.md)
- [XStoreCanAcquireLicenseForStoreIdAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync.md)
- [XStoreCanAcquireLicenseForStoreIdResult](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidresult.md)
