SocketAddress Constructor (AddressFamily)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public:
SocketAddress(
	AddressFamily family
)

Parameters

family
Type: System.Net.Sockets::AddressFamily

An AddressFamily enumerated value.

This overload sets the underlying buffer size to 32 bytes.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Return to top
Show: