SocketAddress.Family Property

 
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.

Gets the AddressFamily enumerated value of the current SocketAddress.

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

Public ReadOnly Property Family As AddressFamily

Property Value

Type: System.Net.Sockets.AddressFamily

One of the AddressFamily enumerated values.

This method gets the AddressFamily enumerated value that represents the addressing scheme of the current SocketAddress. If you want to view the corresponding string representation of AddressFamily, use the ToString method.

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: