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

# Protocol 元素 (MicrosoftGame.config)

> MicrosoftGame.config Element - Protocol

# MicrosoftGame.config Element - Protocol

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

## 父元素

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

## 要求

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

## 平台

此元素适用于 PC 和主机。

## 行为

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

## 另请参阅

[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)
- [MultiplayerProtocol 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-multiplayerprotocol.md)
- [ProtocolList 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-protocollist.md)
- [DesktopRegistration 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-desktopregistration.md)
- [Game 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-game.md)
