> ## 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](/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync) 或 [XStoreCanAcquireLicenseForPackageAsync](/reference/system/xstore/functions/xstorecanacquirelicenseforpackageasync) 后，包是否可被授权。可授权状态可通过其各自的返回函数获得。**XStoreCanLicenseStatus** 是 [XStoreCanAcquireLicenseResult](/reference/system/xstore/structs/xstorecanacquirelicenseresult) 结构的成员。

## 要求

**头文件：** XStore.h（包含在 XGameRuntime.h 中）

**支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

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


## Related topics

- [XStoreCanAcquireLicenseResult](/zh-CN/reference/system/xstore/structs/xstorecanacquirelicenseresult.md)
- [XStore](/zh-CN/reference/system/xstore/xstore_members.md)
- [为玩家授予对附加内容的访问权限](/zh-CN/publishing/xstore-commerce/xstore-granting-access.md)
- [XStoreCanAcquireLicenseForStoreIdResult](/zh-CN/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidresult.md)
- [XStoreCanAcquireLicenseForStoreIdAsync](/zh-CN/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync.md)
