This documentation is archived and is not being maintained.

EndPoint.AddressFamily Property

Gets the address family to which the endpoint belongs.

[Visual Basic]
Public Overridable ReadOnly Property AddressFamily As AddressFamily
public virtual AddressFamily AddressFamily {get;}
public: __property virtual AddressFamily get_AddressFamily();
public function get AddressFamily() : AddressFamily;

Property Value

One of the AddressFamily values.


Exception Type Condition
NotImplementedException 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 used by the endpoint's underlying network protocol.


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

EndPoint Class | EndPoint Members | System.Net Namespace