IPAddress.None Field


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 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
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Return to top