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

# PartyLocalUdpSocketBindAddressOptions

> 用于控制 Party 库如何绑定到由指定 UDP 套接字的其他选项。

用于控制 Party 库如何绑定到由 [PartyLocalUdpSocketBindAddressConfiguration](https://docs.xbox.com/zh-CN/services/playfab/multiplayer/networking/reference/structs/partylocaludpsocketbindaddressconfiguration.md) 结构指定的 UDP 套接字的其他选项。

## Syntax

```cpp theme={null}
enum class PartyLocalUdpSocketBindAddressOptions    
{  
    None = 0x0,  
    ExcludeGameCorePreferredUdpMultiplayerPort = 0x1,  
}  
```

## Constants

| Constant | Description |
| - | - |
| None | 未指定任何标志。  如果尚未显式设置 [PartyLocalUdpSocketBindAddressConfiguration](https://docs.xbox.com/zh-CN/services/playfab/multiplayer/networking/reference/structs/partylocaludpsocketbindaddressconfiguration.md) 结构，则此值为默认值。 |
| ExcludeGameCorePreferredUdpMultiplayerPort | 在未指定端口时，不默认使用 Microsoft Game Core 首选的 UDP 多人游戏端口。  在 Party 库的 Microsoft Game Core 版本中，当 [PartyLocalUdpSocketBindAddressConfiguration](https://docs.xbox.com/zh-CN/services/playfab/multiplayer/networking/reference/structs/partylocaludpsocketbindaddressconfiguration.md) 结构的 *port* 字段为 0 时，此标志会通知 Party 库不使用 Game Core 首选的 UDP 多人游戏端口。在 Party 库的其他版本中，或者如果 *port* 端口非零，则不得设置此标志。 |

## Requirements

**Header:** Party.h

## See also

[Party members](https://docs.xbox.com/zh-CN/services/playfab/multiplayer/networking/reference/party_members.md)\
[PartyLocalUdpSocketBindAddressConfiguration](https://docs.xbox.com/zh-CN/services/playfab/multiplayer/networking/reference/structs/partylocaludpsocketbindaddressconfiguration.md)


## Related topics

- [PartyLocalUdpSocketBindAddressConfiguration](https://docs.xbox.com/zh-CN/services/playfab/multiplayer/networking/reference/structs/partylocaludpsocketbindaddressconfiguration.md)
- [PlayFab Party 错误代码](https://docs.xbox.com/zh-CN/services/playfab/multiplayer/networking/reference/partyerrors.md)
- [Party C/C++ API 概述](https://docs.xbox.com/zh-CN/services/playfab/multiplayer/networking/reference/party_members.md)
- [PartyOption](https://docs.xbox.com/zh-CN/services/playfab/multiplayer/networking/reference/enums/partyoption.md)
- [PartyManager::ConnectToNetwork](https://docs.xbox.com/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_connecttonetwork.md)
