AddressFamily Enumeration

AddressFamily Enumeration

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

Specifies the addressing scheme that an instance of the Socket class can use.

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

public enum AddressFamily

Member nameDescription
UnknownAn unknown address family. Not supported for use in a Windows Phone application.
UnspecifiedAn address family has not been specified. Not supported for use in a Windows Phone application.
InterNetworkAn address for IP version 4.
InterNetworkV6An address for IP version 6. Supported for use in a Windows Phone 8 application.

An AddressFamily member specifies the addressing scheme that a Socket will use to resolve an address. For example, InterNetwork indicates that an IP version 4 address is expected when a Socket connects to an endpoint.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

© 2017 Microsoft