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 initonly 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 255.255.255.255 in dotted-quad notation.

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

int 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 : {0}", address );
}

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: