IPv6InterfacePropertiesとは? わかりやすく解説

IPv6InterfaceProperties クラス

メモ : このクラスは、.NET Framework version 2.0新しく追加されたものです。

インターネット プロトコル Version 6 (IPv6) をサポートしているネットワーク インターフェイスに関する情報提供します

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

Public MustInherit Class
 IPv6InterfaceProperties
Dim instance As IPv6InterfaceProperties
public abstract class IPv6InterfaceProperties
public ref class IPv6InterfaceProperties abstract
public abstract class IPv6InterfaceProperties
public abstract class IPv6InterfaceProperties
解説解説
使用例使用例

IPInterfaceProperties オブジェクト取得して、そのデータ表示するコード例次に示します

Public Shared Sub DisplayIPv6NetworkInterfaces()
 
    Dim nics As NetworkInterface() = NetworkInterface.GetAllNetworkInterfaces()
    Dim properties As IPGlobalProperties =
 IPGlobalProperties.GetIPGlobalProperties()
    Console.WriteLine("IPv6 interface information for {0}.{1}",
 properties.HostName, properties.DomainName)
    
    Dim adapter As NetworkInterface
    For Each adapter In
  nics
        ' Only display informatin for interfaces that support IPv6.
        If adapter.Supports(NetworkInterfaceComponent.IPv6) =
 False Then
            GoTo ContinueForEach1
        End If
        Console.WriteLine()
        Console.WriteLine(adapter.Description)
        ' Underline the description.
        Console.WriteLine(String.Empty.PadLeft(adapter.Description.Length,
 "="c))
        
        Dim adapterProperties As IPInterfaceProperties
 = adapter.GetIPProperties()
        ' Try to get the IPv6 interface properties.
        Dim p As IPv6InterfaceProperties =
 adapterProperties.GetIPv6Properties()
        
        
        If p Is Nothing
 Then
            Console.WriteLine("No IPv6 information is available
 for this interface.")
            GoTo ContinueForEach1
        End If
        ' Display the IPv6 specific data.
        Console.WriteLine("  Index .............................
 : {0}", p.Index)
        Console.WriteLine("  MTU ...............................
 : {0}", p.Mtu)
    ContinueForEach1:
    Next adapter

End Sub 'DisplayIPv6NetworkInterfaces

public static void DisplayIPv6NetworkInterfaces()
{
    NetworkInterface[] nics = NetworkInterface.GetAllNetworkInterfaces();
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    Console.WriteLine("IPv6 interface information for {0}.{1}"
,
       properties.HostName, properties.DomainName);

    foreach (NetworkInterface adapter in nics)
    {
        // Only display informatin for interfaces that support IPv6.
        if (adapter.Supports(NetworkInterfaceComponent.IPv6) ==
 false)
        {
            continue;
        }
        Console.WriteLine();
        Console.WriteLine(adapter.Description);
        // Underline the description.
        Console.WriteLine(String.Empty.PadLeft(adapter.Description.Length,'='));
        
        IPInterfaceProperties adapterProperties = adapter.GetIPProperties();
        // Try to get the IPv6 interface properties.
        IPv6InterfaceProperties p = adapterProperties.GetIPv6Properties();

   
        if (p == null)
        {
            Console.WriteLine("No IPv6 information is available for
 this interface.");
            continue;
        }
        // Display the IPv6 specific data.
        Console.WriteLine("  Index ............................. : {0}",
 p.Index);
        Console.WriteLine("  MTU ............................... : {0}",
 p.Mtu);
    }
}
継承階層継承階層
System.Object
  System.Net.NetworkInformation.IPv6InterfaceProperties
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
IPv6InterfaceProperties メンバ
System.Net.NetworkInformation 名前空間

IPv6InterfaceProperties コンストラクタ


IPv6InterfaceProperties プロパティ


IPv6InterfaceProperties メソッド


IPv6InterfaceProperties メンバ

インターネット プロトコル Version 6 (IPv6) をサポートしているネットワーク インターフェイスに関する情報提供します

IPv6InterfaceProperties データ型公開されるメンバを以下の表に示します


プロテクト コンストラクタプロテクト コンストラクタ
  名前 説明
プロテクト メソッド IPv6InterfaceProperties IPv6InterfaceProperties クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

IPv6InterfaceProperties クラス
System.Net.NetworkInformation 名前空間


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

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

辞書ショートカット

すべての辞書の索引

「IPv6InterfaceProperties」の関連用語

IPv6InterfacePropertiesのお隣キーワード
検索ランキング

   

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



IPv6InterfacePropertiesのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS