> ## 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（API 内容）

> XtfConsoleManager

# XtfConsoleManager

用于获取默认开发主机或管理开发主机集合的 XBOX Tools Framework (XTF) API。

## 接口

| 接口 | 说明 |
| - | - |
| [IXtfConsoleManager](/zh-CN/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-t) | 管理 XBOX Tools Framework (XTF) 应用的开发主机。 |
| [IXtfConsoleManagerCallback](/zh-CN/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManagerCallback/ixtfconsolemanagercallback-xtfconsolemanager-xbox-microsoft-t) | 提供回调，当添加或移除 [IXtfConsoleManager](/zh-CN/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-t) 实例中的开发主机，或更改默认开发主机时使用。 |
| [IXtfEnumerateConsolesCallback](/zh-CN/reference/tools/xtf/xtfconsolemanager/classes/IXtfEnumerateConsolesCallback/ixtfenumerateconsolescallback-xtfconsolemanager-xbox-microsoft-t) | 提供回调，在 [IXtfConsoleManager::EnumerateConsoles](/zh-CN/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/methods/enumerateconsoles-ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-m) 操作期间发现开发主机时使用。 |

## 函数

| 函数 | 说明 |
| - | - |
| [XtfCreateConsoleManager](/zh-CN/reference/tools/xtf/xtfconsolemanager/methods/xtfcreateconsolemanager-xtfconsolemanager-xbox-microsoft-m) | 初始化 [IXtfConsoleManager](/zh-CN/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-t) 接口的新实例。 |
| [XtfGetDefaultAddress](/zh-CN/reference/tools/xtf/xtfconsolemanager/methods/xtfgetdefaultaddress-xtfconsolemanager-xbox-windows-m) | 返回此 PC 的默认开发主机的 IP 地址。 |

## 结构

| 结构 | 说明 |
| - | - |
| [XTFCONSOLEDATA](/zh-CN/reference/tools/xtf/xtfconsolemanager/structures/xtfconsoledata-xtfconsolemanager-xbox-microsoft-t) | 包含 [IXtfConsoleManager](/zh-CN/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-t) 实例中的开发主机的相关信息。 |

若要创建实现 IXtfConsoleManager 接口的对象，请调用 [XtfCreateConsoleManager](/zh-CN/reference/tools/xtf/xtfconsolemanager/methods/xtfcreateconsolemanager-xtfconsolemanager-xbox-microsoft-m)。

若要检索开发 PC 默认主机的 IP 地址，请从该 PC 调用 [XtfGetDefaultAddress](/zh-CN/reference/tools/xtf/xtfconsolemanager/methods/xtfgetdefaultaddress-xtfconsolemanager-xbox-windows-m)。


## Related topics

- [XtfCreateConsoleManager](/reference/tools/xtf/xtfconsolemanager/methods/xtfcreateconsolemanager-xtfconsolemanager-xbox-microsoft-m.md)
- [AddConsole](/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/methods/addconsole-ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-m.md)
