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

# PartyLocalUdpSocketBindAddressOptions

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

用于控制 Party 库如何绑定到由 [PartyLocalUdpSocketBindAddressConfiguration](/services/playfab/multiplayer/networking/reference/structs/partylocaludpsocketbindaddressconfiguration) 结构指定的 UDP 套接字的其他选项。

## Syntax

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

## Constants

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

## Requirements

**Header:** Party.h

## See also

[Party members](/services/playfab/multiplayer/networking/reference/party_members)\
[PartyLocalUdpSocketBindAddressConfiguration](/services/playfab/multiplayer/networking/reference/structs/partylocaludpsocketbindaddressconfiguration)
