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

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

IPAddress.IPv6None フィールド

IP アドレス提供しネットワーク インターフェイス使用しないことを示します。このプロパティ読み取り専用です。

名前空間: System.Net
アセンブリ: System (system.dll 内)
構文構文

解説解説
使用例使用例

標準圧縮形式現在のホストのどのアドレスの値も表示しない例を示します

' 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
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS