> ## 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.

# XStoreCanLicenseStatus

> XStoreCanLicenseStatus

# XStoreCanLicenseStatus

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

## 語法

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

## 常數

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

## 備註

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

## 需求

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

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

## 另請參閱

[XStore](/zh-TW/reference/system/xstore/xstore_members)\
[XStoreCanAcquireLicenseResult](/zh-TW/reference/system/xstore/structs/xstorecanacquirelicenseresult)\
[XStoreCanAcquireLicenseForPackageAsync](/zh-TW/reference/system/xstore/functions/xstorecanacquirelicenseforpackageasync)\
[XStoreCanAcquireLicenseForStoreIdAsync](/zh-TW/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync)


## Related topics

- [XStoreCanLicenseStatus](/reference/system/xstore/enums/xstorecanlicensestatus.md)
- [XStoreCanAcquireLicenseResult](/reference/system/xstore/structs/xstorecanacquirelicenseresult.md)
- [XStore](/reference/system/xstore/xstore_members.md)
- [Granting players access to add-on content](/publishing/xstore-commerce/xstore-granting-access.md)
- [Concesión de acceso a los jugadores al contenido de complemento](/es/publishing/xstore-commerce/xstore-granting-access.md)
