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

代表四段式版本號碼。

## 語法

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

### 成員

*major*\
類型：uint16\_t

主要版本號碼。

*minor*\
類型：uint16\_t

次要版本號碼。

*build*\
類型：uint16\_t

組建編號。

*revision*\
類型：uint16\_t

修訂編號。

*Value*
類型：uint64\_t

代表四段式版本的 64 位元封裝整數。

## 備註

Gaming Runtime 功能會使用 **XVersion** 結構來表示版本資訊。[XSystemAnalyticsInfo](/zh-TW/reference/system/xsystem/structs/xsystemanalyticsinfo) 和 [XSystemRuntimeInfo](/zh-TW/reference/system/xsystem/structs/xsystemruntimeinfo)
結構會使用 **XVersion** 來表示作業系統和遊戲執行階段的版本。此外，
[XPackageDetails](/zh-TW/reference/system/xpackage/structs/xpackagedetails) 結構會使用 **XVersion** 來表示
套件的版本。

## 需求

**標頭：** XGameRuntimeTypes.h

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

## 另請參閱

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


## Related topics

- [XVersion](/reference/system/xgameruntimetypes/structs/xversion.md)
- [XSystemRuntimeInfo](/reference/system/xsystem/structs/xsystemruntimeinfo.md)
- [XSystemAnalyticsInfo](/reference/system/xsystem/structs/xsystemanalyticsinfo.md)
