SocketAddress.GetMaximumAddressSize(AddressFamily) Method

Definition

Gets the maximum required buffer size for the given AddressFamily.

public static int GetMaximumAddressSize (System.Net.Sockets.AddressFamily addressFamily);

Parameters

addressFamily
AddressFamily

The addressing scheme to use.

Returns

The maximum buffer size.

Applies to

Product Versions
.NET 8, 9