EndPoint.AddressFamily Property

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

Gets the address family to which the endpoint belongs.

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


Public Overridable ReadOnly Property AddressFamily As AddressFamily
public virtual AddressFamily AddressFamily { get; }

Property Value

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


Exception Condition

Any attempt is made to get or set the property when the property is not overridden in a descendant class.


The AddressFamily property specifies the addressing scheme that is used by the endpoint's underlying network protocol.

Version Information


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1


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