None Field

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 static readonly IPAddress None

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 static void Main()
   // Gets the IP address indicating that no network interface should be used 
   // and converts it to a string.
   string address = IPAddress.None.ToString();
   Console.WriteLine("IP address : " + address);

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
© 2015 Microsoft