Mono Class Library: System.Net.SocketAddress Overview | Members

System.Net.SocketAddress Constructor

Constructs and initializes a new instance of the System.Net.SocketAddress class.

public SocketAddress (System.Net.Sockets.AddressFamily family, int size)

Parameters

family
One of the values of the System.Net.Sockets.AddressFamily enumeration.
size
A int containing the number of bytes to allocate for the byte array storing the socket address.

Exceptions

TypeReason
ArgumentOutOfRangeExceptionsize is less than 2.

Remarks

The minimum value for size is 2 bytes.

Requirements

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