IPAddress.IPv6None フィールド
アセンブリ: System (system.dll 内)


Socket.Bind メソッドは、IPv6None フィールドを使用して、Socket がクライアントによるネットワーク利用を待機できないことを示します。IPv6None フィールドは、コロン区切りの 16 進表記 0:0:0:0:0:0:0:0 と等しくなります。簡単な表記では ::0 になります。

標準の圧縮形式で現在のホストのどのアドレスの値も表示しない例を示します。
' This function 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. Private Shared Sub printIPv6NoneAddress() 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() Console.WriteLine(("The IPv6 None address is: " + ipv6None)) Catch e As Exception Console.WriteLine(("[printIPv6NoneAddress] Exception: " + e.ToString())) End Try End Sub 'printIPv6NoneAddress
// 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. private static 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: " + ipv6None); } catch (Exception e) { Console.WriteLine("[displayIPv6NoneAddress] Exception: " + e.ToString()); } }
// 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 ); } }
// 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. private static 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: " + ipv6None)); } catch(System.Exception e) { Console.WriteLine(("[DisplayIPv6AnyAddress] Exception: " + e.ToString())); } } //DisplayIPv6AnyAddress

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からIPAddress.IPv6None フィールドを検索する場合は、下記のリンクをクリックしてください。

- IPAddress.IPv6None フィールドのページへのリンク