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

Representa um número de versão de quatro partes.

## Sintaxe

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

### Membros

*major*\
Tipo: uint16\_t

O número da versão principal.

*minor*\
Tipo: uint16\_t

O número da versão secundária.

*build*\
Tipo: uint16\_t

O número do build.

*revision*\
Tipo: uint16\_t

O número da revisão.

*Value*
Tipo: uint64\_t

Inteiro compactado de 64 bits que representa a versão de 4 partes.

## Comentários

Os recursos do Gaming Runtime usam a estrutura **XVersion** para representar as informações de versão. As estruturas [XSystemAnalyticsInfo](/pt-BR/reference/system/xsystem/structs/xsystemanalyticsinfo) e [XSystemRuntimeInfo](/pt-BR/reference/system/xsystem/structs/xsystemruntimeinfo)
usam **XVersion** para representar as versões do sistema operacional e do Gaming Runtime. Além
disso, a estrutura [XPackageDetails](/pt-BR/reference/system/xpackage/structs/xpackagedetails) usa **XVersion** para representar a
versão de um pacote.

## Requisitos

**Cabeçalho:** XGameRuntimeTypes.h

**Plataformas com suporte:** Windows, consoles da família XBOX One e consoles XBOX Series

## Confira também

[XPackageDetails](/pt-BR/reference/system/xpackage/structs/xpackagedetails)\
[XSystemAnalyticsInfo](/pt-BR/reference/system/xsystem/structs/xsystemanalyticsinfo)\
[XSystemRuntimeInfo](/pt-BR/reference/system/xsystem/structs/xsystemruntimeinfo)
[XGameRuntimeTypes](/pt-BR/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)
