AddressFamily Property
Collapse the table of content
Expand the table of content

IPAddress.AddressFamily Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the address family of the IP address.

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

public AddressFamily AddressFamily { get; }

Property Value

Type: System.Net.Sockets.AddressFamily
Returns InterNetwork for IPv4 or InterNetworkV6 for IPv6.

The AddressFamily property gets the address family of the IPAddress instance.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft