共用方式為


Socket.OSSupportsIPv4 Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public Shared ReadOnly Property OSSupportsIPv4 As Boolean
public static bool OSSupportsIPv4 { get; }

Property Value

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

Remarks

The operating system may support both IPv4 and IPv6 protocols.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.