IPAddress.IPv6Any フィールドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > IPAddress.IPv6Any フィールドの意味・解説 

IPAddress.IPv6Any フィールド

Socket.Bind メソッドは、IPv6Any フィールド使用してSocket が、すべてのネットワーク インターフェイスクライアントによるネットワーク利用待機する必要があることを示します

名前空間: System.Net
アセンブリ: 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
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からIPAddress.IPv6Any フィールドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からIPAddress.IPv6Any フィールドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からIPAddress.IPv6Any フィールド を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

IPAddress.IPv6Any フィールドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



IPAddress.IPv6Any フィールドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS