Constructs and initializes a new instance of the System.Net.SocketAddress class.
- 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.
Type Reason ArgumentOutOfRangeException size is less than 2.
The minimum value for size is 2 bytes.
Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0