SocketAddress Constructor

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Creates a new instance of the SocketAddress class using the specified address family and buffer size.

Namespace:  System.Net
Assembly:  System (in System.dll)

public SocketAddress(
	AddressFamily family,
	int size
)

Parameters

family
Type: System.Net.Sockets..::..AddressFamily
An AddressFamily enumerated value.
size
Type: System..::..Int32
The number of bytes to allocate for the underlying buffer.

Use this overload to create a new instance of the SocketAddress class with a particular underlying buffer size.

Show: