This documentation is archived and is not being maintained.

SocketAddress.Family Property

Gets the AddressFamily enumerated value of the current SocketAddress.

[Visual Basic]
Public ReadOnly Property Family As AddressFamily
public AddressFamily Family {get;}
public: __property AddressFamily get_Family();
public function get Family() : AddressFamily;

Property Value

One of the AddressFamily enumerated values.


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


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

SocketAddress Class | SocketAddress Members | System.Net Namespace | AddressFamily