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

# XtfConsoleFieldId 列舉

> XtfConsoleFieldId 列舉

# XtfConsoleFieldId 列舉

識別要從 [XtfGetConsoleFieldValue](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfgetconsolefieldvalue-xbox-microsoft-m) 傳回的值。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
typedef enum XtfConsoleFieldId
{
    ToolsIpAddress,
    ConsoleIPAddress,
    AccessKey,
    ConsoleId,
    CertType,
    HostName,
    DeviceId,
    DeviceType,
    DeviceTypeVal,
    SystemMajorVersion,
    SystemMinorVersion,
    SystemBuildVersion,
    SystemRevisionVersion,
    MaximumConsoleFieldId
} XtfConsoleFieldId;  
```

<a id="constantsSection" />

## 常數

| 常數 | 描述 |
| - | - |
| ToolsIpAddress | Tools IP 位址 (預設為 IPv4；如果主機位於僅限 IPv6 的網路上，則為 IPv6)。 |
| ConsoleIPAddress | 主機 IP 位址 (預設為 IPv4；如果主機位於僅限 IPV6 的網路上，則為 IPv6)。 |
| AccessKey | 主機存取金鑰 |
| ConsoleId | 主機識別碼 |
| CertType | 保留供內部使用。 |
| HostName | 主機的主機名稱 |
| DeviceId | 主機裝置識別碼 |
| DeviceType | 主機裝置類型 |
| DeviceTypeVal | 主機裝置類型值 |
| SystemMajorVersion | 系統主要版本 |
| SystemMinorVersion | 系統次要版本 |
| SystemBuildVersion | 系統組建版本 |
| SystemRevisionVersion | 系統修訂版本 |
| MaximumConsoleFieldId | 最大主機欄位識別碼 |

<a id="remarksSection" />

## 備註

此列舉表示 [XtfGetConsoleFieldValue](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfgetconsolefieldvalue-xbox-microsoft-m) 函式所傳回的主機欄位值。請使用該函式 `fieldType` 參數中傳回的值，來識別所傳回主機欄位值的類型。如需主機設定的詳細資訊，請參閱[管理主機設定 (NDA 主題)](/zh-TW/tools/tools-console/xbom/manager-tool-console-settings)。

<a id="requirements" />

## 需求

**標頭:** xtfapi.h

**程式庫:** xtfapi.lib

**支援的平台:** Windows (適用於 XBOX 主機工具)

<a id="seealsoSection" />

## 另請參閱

[XtfConsoleFieldType 列舉](/zh-TW/reference/tools/xtf/xtfapi/enums/xtfconsolefieldtype-xbox-windows-t)\
[其他 Xtf API](/zh-TW/reference/tools/xtf/xtfapi/atoc-xtfapi)\
[XBOX Tools Framework 原生 API 參考](/zh-TW/reference/tools/xtf/atoc-xtf-native)


## Related topics

- [XtfConsoleFieldType 列舉](/zh-TW/reference/tools/xtf/xtfapi/enums/xtfconsolefieldtype-xbox-windows-t.md)
- [XtfGetConsoleFieldValue](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfgetconsolefieldvalue-xbox-microsoft-m.md)
- [XtfConsoleCertType 列舉](/zh-TW/reference/tools/xtf/xtfapi/enums/xtfconsolecerttype-xbox-windows-t.md)
- [XtfGetConsoleInfoList](/zh-TW/reference/tools/xtf/xtfconsolecontrol/functions/xtfgetconsoleinfolist-xtfconsolecontrol-xbox-microsoft-m.md)
- [IXtfConsoleManager::EnumerateConsoles 方法](/zh-TW/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/methods/enumerateconsoles-ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-m.md)
