> ## 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 元素 - Protocol

> MicrosoftGame.config 元素 - Protocol

# MicrosoftGame.config 元素 - Protocol

指定自訂通訊協定，可用來啟動遊戲，或在遊戲已在執行時將遊戲帶到
前景。

## 父系

此元素的父系是 ProtocolList 元素。

## 需求

此元素為選用，不需要設定。

## 平台

此元素適用於 PC 和主機。

## 行為

* 屬性如下：
  * Name - 必要，且必須符合下列條件：
    * 僅包含小寫英數字元和/或連字號
    * 長度至少 3 個字元
    * 長度上限為 39 個字元
  * Executable - 選用。若未指定，將預設為
    ExecutableList 中的預設可執行檔。若包含路徑，應使用反斜線作為分隔符號。

## 另請參閱

[MicrosoftGame.config 參考 - 目錄](/zh-TW/reference/system/microsoftgameconfig/elements/gc-microsoftgameconfig-toc)


## Related topics

- [MicrosoftGame.config Element - Protocol](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-protocol.md)
- [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 参考](/zh-CN/reference/system/microsoftgameconfig/elements/gc-microsoftgameconfig-toc.md)
- [MicrosoftGame.config Element - DesktopRegistration](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-desktopregistration.md)
