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

# XVersion

> XVersion

# XVersion

表示四部分版本号。

## Syntax

```cpp theme={null}
typedef struct XVersion {  
    union
    {
        struct
        {
            uint16_t major;  
            uint16_t minor;  
            uint16_t build;  
            uint16_t revision;
        };
        uint64_t Value;
    };
} XVersion  
```

### Members

*major*\
类型：uint16\_t

主要版本号。

*minor*\
类型：uint16\_t

次要版本号。

*build*\
类型：uint16\_t

生成号。

*revision*\
类型：uint16\_t

修订号。

*Value*
类型：uint64\_t

表示 4 部分版本的 64 位打包整数。

## Remarks

Gaming Runtime 功能使用 **XVersion** 结构来表示版本信息。[XSystemAnalyticsInfo](/reference/system/xsystem/structs/xsystemanalyticsinfo) 和 [XSystemRuntimeInfo](/reference/system/xsystem/structs/xsystemruntimeinfo) 结构使用 **XVersion** 表示操作系统和游戏运行时的版本。此外，[XPackageDetails](/reference/system/xpackage/structs/xpackagedetails) 结构使用 **XVersion** 表示包的版本。

## Requirements

**头文件：** XGameRuntimeTypes.h

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

## See also

[XPackageDetails](/reference/system/xpackage/structs/xpackagedetails)\
[XSystemAnalyticsInfo](/reference/system/xsystem/structs/xsystemanalyticsinfo)\
[XSystemRuntimeInfo](/reference/system/xsystem/structs/xsystemruntimeinfo)
[XGameRuntimeTypes](/reference/system/xgameruntimetypes/xgameruntimetypes_members)


## Related topics

- [XSystemRuntimeInfo](/zh-CN/reference/system/xsystem/structs/xsystemruntimeinfo.md)
- [XSystemAnalyticsInfo](/zh-CN/reference/system/xsystem/structs/xsystemanalyticsinfo.md)
- [XGameRuntimeTypes](/zh-CN/reference/system/xgameruntimetypes/xgameruntimetypes_members.md)
- [XGameStreamingGetTouchBundleVersion](/zh-CN/reference/system/xgamestreaming/functions/xgamestreaminggettouchbundleversion.md)
- [XPackageDetails](/zh-CN/reference/system/xpackage/structs/xpackagedetails.md)
