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

# MicrosoftGame.config Element - Protocol

> MicrosoftGame.config Element - Protocol

# MicrosoftGame.config Element - Protocol

指定可用于启动游戏或在游戏已运行时将其置于前台的
自定义协议。

## 父元素

此元素的父元素是 ProtocolList 元素。

## 要求

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

## 平台

此元素适用于 PC 和主机。

## 行为

* 属性为：
  * Name - 必填，必须满足以下条件：
    * 仅包含小写字母数字字符和/或连字符
    * 最小长度至少为 3 个字符
    * 最大长度为 39 个字符
  * Executable - 可选。如果未指定，将默认为
    ExecutableList 中的默认可执行文件。如果包含路径，则应使用反斜杠作为分隔符。

## 另请参阅

[MicrosoftGame.config 参考 - 目录](/reference/system/microsoftgameconfig/elements/gc-microsoftgameconfig-toc)


## Related topics

- [MicrosoftGame.config Element - ProtocolList](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-protocollist.md)
- [MicrosoftGame.config Element - MultiplayerProtocol](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-multiplayerprotocol.md)
- [MicrosoftGame.config Element - DesktopRegistration](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-desktopregistration.md)
- [MicrosoftGame.config Element - Game](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-game.md)
- [MicrosoftGame.config Element - Executable](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-executable.md)
