IPAddress::IPv6None Field
.NET Framework (current version)
Provides an IP address that indicates that no network interface should be used. This property is read-only.
Assembly: System (in System.dll)
Field Value
Type: System.Net::IPAddress^The Socket::Bind method uses the IPv6None field to indicate that a Socket must not listen for client activity. The IPv6None field is equivalent to 0:0:0:0:0:0:0:0 in colon-hexadecimal notation, or to ::0 in compact notation.
The following code example displays the value of the current host's None address in standard compressed format.
// This method displays the value of the current host's None address in // standard compressed format. The None address is used by the host to disable // listening to client activities on all the interfaces. void displayIPv6NoneAddress() { try { // Get the None address. IPAddress^ none = IPAddress::IPv6None; // Transform the None address to a string using the overloaded // ToString() method. Note that the resulting string is in the compact // form: "::". String^ ipv6None = none->ToString(); Console::WriteLine( "The IPv6 None address is: {0}", ipv6None ); } catch ( Exception^ e ) { Console::WriteLine( "->Item[displayIPv6NoneAddress] Exception: {0}", e ); } }
Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Available since 10
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Show: