System.Net.Sockets.UdpClient.ExclusiveAddressUse Property

Gets or sets a bool value that specifies whether the System.Net.Sockets.UdpClient allows only one client to use a port.

Syntax

public bool ExclusiveAddressUse { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

By default, multiple clients can use a specific port; however, only one of the clients can perform operations on the network traffic sent to the port. You can use the UdpClient.ExclusiveAddressUse property to prevent multiple clients from using a specific port.

This property must be set before the underlying socket is bound to a client port. If you call UdpClient.#ctor(int), UdpClient.#ctor(int, AddressFamily), UdpClient.#ctor(System.Net.IPEndPoint), or UdpClient.#ctor(string, int), the client port is bound as a side effect of the constructor, and you cannot subsequently set the UdpClient.ExclusiveAddressUse property

Requirements

Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0