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)
Syntax
'Declaration
Public Sub New ( _
family As AddressFamily, _
size As Integer _
)
public SocketAddress(
AddressFamily family,
int size
)
public:
SocketAddress(
AddressFamily family,
int size
)
new :
family:AddressFamily *
size:int -> SocketAddress
public function SocketAddress(
family : AddressFamily,
size : int
)
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.
Remarks
Use this overload to create a new instance of the SocketAddress class with a particular underlying buffer size.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.