> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MultiplayerProtocol 元素 (MicrosoftGame.config)

> MicrosoftGame.config Element - MultiplayerProtocol

# MicrosoftGame.config Element - MultiplayerProtocol

允许通过 "ms-xbl-multiplayer" 协议在标题内进行协议激活。主要用于使 Game Bar 能够启动游戏/多人游戏邀请。

## 父元素

此元素的父元素是 DesktopRegistration 元素。

## 要求

此元素为可选，无需设置。

## 平台

此元素仅适用于 PC 设备。

## 行为

* 属性为 Executable。
* 默认值为 false。Executable 属性没有默认值。
* 允许值为 true 和 false。Executable 属性是指向可执行文件的相对路径。

## 备注

* Executable 属性为可选，应与 ExecutableList 元素中定义的应通过协议激活的可执行文件匹配。
* 如果未提供该属性，协议将默认激活 ExecutableList 元素中的第一个 Executable。

## 另请参阅

[MicrosoftGame.config 参考 - 目录](https://docs.xbox.com/zh-CN/reference/system/microsoftgameconfig/elements/gc-microsoftgameconfig-toc.md)


## Related topics

- [MicrosoftGame.config 元素参考（内容）](https://docs.xbox.com/zh-CN/reference/system/microsoftgameconfig/elements/gc-microsoftgameconfig-toc.md)
- [DesktopRegistration 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-desktopregistration.md)
- [Protocol 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-protocol.md)
- [ProtocolList 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-protocollist.md)
- [Game 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-game.md)
