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

# XtfConsoleManager

> XtfConsoleManager

# XtfConsoleManager

用來取得預設開發主機或管理開發主機集合的 XBOX Tools Framework (XTF) API。

<a id="interfacesSection" />

## 介面

| 介面 | 描述 |
| - | - |
| [IXtfConsoleManager](/zh-TW/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-t) | 管理 XBOX Tools Framework (XTF) 應用程式的開發主機。 |
| [IXtfConsoleManagerCallback](/zh-TW/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManagerCallback/ixtfconsolemanagercallback-xtfconsolemanager-xbox-microsoft-t) | 提供在 [IXtfConsoleManager](/zh-TW/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-t) 執行個體中新增或移除開發主機，或變更預設開發主機時所使用的回呼。 |
| [IXtfEnumerateConsolesCallback](/zh-TW/reference/tools/xtf/xtfconsolemanager/classes/IXtfEnumerateConsolesCallback/ixtfenumerateconsolescallback-xtfconsolemanager-xbox-microsoft-t) | 提供在 [IXtfConsoleManager::EnumerateConsoles](/zh-TW/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/methods/enumerateconsoles-ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-m) 作業期間找到開發主機時所使用的回呼。 |

## 函式

| 函式 | 描述 |
| - | - |
| [XtfCreateConsoleManager](/zh-TW/reference/tools/xtf/xtfconsolemanager/methods/xtfcreateconsolemanager-xtfconsolemanager-xbox-microsoft-m) | 初始化 [IXtfConsoleManager](/zh-TW/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-t) 介面的新執行個體。 |
| [XtfGetDefaultAddress](/zh-TW/reference/tools/xtf/xtfconsolemanager/methods/xtfgetdefaultaddress-xtfconsolemanager-xbox-windows-m) | 傳回此電腦之預設開發主機的 IP 位址。 |

## 結構

| 結構 | 描述 |
| - | - |
| [XTFCONSOLEDATA](/zh-TW/reference/tools/xtf/xtfconsolemanager/structures/xtfconsoledata-xtfconsolemanager-xbox-microsoft-t) | 包含 [IXtfConsoleManager](/zh-TW/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-t) 執行個體中開發主機的相關資訊。 |

若要建立實作 IXtfConsoleManager 介面的物件，請呼叫 [XtfCreateConsoleManager](/zh-TW/reference/tools/xtf/xtfconsolemanager/methods/xtfcreateconsolemanager-xtfconsolemanager-xbox-microsoft-m)。

若要擷取開發電腦之預設主機的 IP 位址，請從該電腦呼叫 [XtfGetDefaultAddress](/zh-TW/reference/tools/xtf/xtfconsolemanager/methods/xtfgetdefaultaddress-xtfconsolemanager-xbox-windows-m)。


## Related topics

- [XtfCreateConsoleManager](/reference/tools/xtf/xtfconsolemanager/methods/xtfcreateconsolemanager-xtfconsolemanager-xbox-microsoft-m.md)
- [IXtfConsoleManager::RemoveConsole Method](/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/methods/removeconsole-ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-m.md)
