IPAddress.None Field

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Provides an IP address that indicates that no network interface should be used. This field is read-only.

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

Public Shared ReadOnly None As IPAddress

Field Value

Type: System.Net.IPAddress

The Socket.Bind method uses the None field to indicate that a Socket must not listen for client activity. The None field is equivalent to 255.255.255.255 in dotted-quad notation.

The following example uses the None property to indicate that no network interface should be used.

Public Shared Sub Main()

    ' Gets the IP address indicating that no network interface should be used
    ' and converts it to a string. 
    Dim address As String = IPAddress.None.ToString()
    Console.WriteLine(("IP address : " + address))
End Sub 'Main 

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Return to top
Show: