OSSupportsIPv4 Property

Socket.OSSupportsIPv4 Property

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

Gets a value indicating whether IPv4 support is available and enabled on the current host.

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

public static bool OSSupportsIPv4 { get; }

Property Value

Type: System.Boolean
true if the current host supports the IPv4 protocol; otherwise, false.

The operating system may support both IPv4 and IPv6 protocols.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft