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



標準の圧縮形式で現在のホストのすべてのアドレスの値を表示する例を示します。
' This function prints the value of the current host's Any address in ' standard compressed format. The Any address is used by the host to enable ' listening to client activities on all the interfaces for a given port. Private Shared Sub printIPv6AnyAddress() Try ' Get the Any address. Dim any As IPAddress = IPAddress.IPv6Any ' Transform the Any address to a string using the overladed ' ToString() method. Note that the resulting string is in the compact ' form: "::". Dim ipv6Any As String = any.ToString() ' Display the Any address. Console.WriteLine(("The IPv6 Any address is: " + ipv6Any)) Catch e As Exception Console.WriteLine(("[printIPv6AnyAddress] Exception: " + e.ToString())) End Try End Sub 'printIPv6AnyAddress
// This method displays the value of the current host's Any address in // standard compressed format. The Any address is used by the host to enable // listening to client activities on all the interfaces for a given port. private static void displayIPv6AnyAddress() { try { // Get the Any address. IPAddress any = IPAddress.IPv6Any; // Transform the Any address to a string using the overloaded // ToString() method. Note that the resulting string is in the compact // form: "::". string ipv6Any = any.ToString(); // Display the Any address. Console.WriteLine("The IPv6 Any address is: " + ipv6Any); } catch (Exception e) { Console.WriteLine("[displayIPv6AnyAddress] Exception: " + e.ToString()); } }
// This method displays the value of the current host's Any address in // standard compressed format. The Any address is used by the host to enable // listening to client activities on all the interfaces for a given port. void displayIPv6AnyAddress() { try { // Get the Any address. IPAddress^ any = IPAddress::IPv6Any; // Transform the Any address to a string using the overloaded // ToString() method. Note that the resulting string is in the compact // form: "::". String^ ipv6Any = any->ToString(); // Display the Any address. Console::WriteLine( "The IPv6 Any address is: {0}", ipv6Any ); } catch ( Exception^ e ) { Console::WriteLine( "->Item[displayIPv6AnyAddress] Exception: {0}", e ); } }
// This method displays the value of the current host's Any address in // standard compressed format. The Any address is used by the host to // enable listening to client activities on all the interfaces for a // given port. private static void DisplayIPv6AnyAddress() { try { // Get the Any address. IPAddress any = IPAddress.IPv6Any; // Transform the Any address to a string using the overloaded // ToString() method. Note that the resulting string is in the // compact // form: "::". String ipv6Any = any.ToString(); // Display the Any address. Console.WriteLine(("The IPv6 Any address is: " + ipv6Any)); } 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.IPv6Any フィールドを検索する場合は、下記のリンクをクリックしてください。

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