Export (0) Print
Expand All

SocketAddress Constructor (AddressFamily)

.NET Framework 1.1

Creates a new instance of the SocketAddress class for the given address family.

[Visual Basic]
Public Sub New( _
   ByVal family As AddressFamily _
)
[C#]
public SocketAddress(
   AddressFamily family
);
[C++]
public: SocketAddress(
   AddressFamily family
);
[JScript]
public function SocketAddress(
   family : AddressFamily
);

Parameters

family
An AddressFamily enumerated value.

Remarks

This overload sets the underlying buffer size to 32 bytes.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

SocketAddress Class | SocketAddress Members | System.Net Namespace | SocketAddress Constructor Overload List

Show:
© 2015 Microsoft