Socket.SupportsIPv4 Property

Note: This API is now obsolete.

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

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

<ObsoleteAttribute("SupportsIPv4 is obsoleted for this type, please use OSSupportsIPv4 instead.")>
Public Shared ReadOnly Property SupportsIPv4 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.

.NET Framework
Available since 1.1
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft