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

## 要求

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

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

## 另请参阅

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


## Related topics

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