This documentation is archived and is not being maintained.
Socket. OSSupportsIPv6 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 IPv6 support is available and enabled on the current host.
Namespace:
System.Net.Sockets
Assembly:
System.Net (in System.Net.dll)
'Declaration
Public Shared ReadOnly Property OSSupportsIPv6 As Boolean
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.
Dim ipv6Supported AS Boolean = Socket.OSSupportsIPv6
If ipv6Supported Then
outputBlock.Text &= "IPv6 is supported"
Else
outputBlock.Text &= "IPv6 is not supported"
End If
outputBlock.Text &= vbCrLf
Windows Phone OS Supported in: 8.1, 8.0, 7.1