SocketAddress.Family Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the AddressFamily enumerated value of the current SocketAddress.

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

Syntax

'Declaration
Public ReadOnly Property Family As AddressFamily
public AddressFamily Family { get; }

Property Value

Type: System.Net.Sockets.AddressFamily
One of the AddressFamily enumerated values.

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.