IPv6None Field
Collapse the table of content
Expand the table of content

IPAddress.IPv6None Field

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

'Declaration
Public Shared ReadOnly IPv6None As IPAddress

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 IPv6None field is defined even when the Socket.OSSupportsIPv6 property is false.

The following code example displays the value of the current host's IPv6 None address in standard compact notation.


' This sample prints 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.
   Try

      ' Get the None address.
      Dim none As IPAddress = IPAddress.IPv6None

      ' Transform the None address to a string using the overloaded
      ' ToString() method. Note that the resulting string is in the compact 
      ' form: "::".
      Dim ipv6None As String = none.ToString()

      outputBlock.Text &= "The IPv6 None address is: "
      outputBlock.Text &= ipv6None
      outputBlock.Text &= vbCrLf
   Catch e As Exception
      outputBlock.Text &= "Exception: "
      outputBlock.Text &= e.ToString()
      outputBlock.Text &= vbCrLf
   End Try


Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft