IPv6InterfaceProperties.Mtu プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > IPv6InterfaceProperties.Mtu プロパティの意味・解説 

IPv6InterfaceProperties.Mtu プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

このネットワーク インターフェイス最大 MTU (Maximum Transmission Unit) を取得します

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

解説解説
使用例使用例

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

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);
    }
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
IPv6InterfaceProperties クラス
IPv6InterfaceProperties メンバ
System.Net.NetworkInformation 名前空間


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

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

辞書ショートカット

すべての辞書の索引

IPv6InterfaceProperties.Mtu プロパティのお隣キーワード
検索ランキング

   

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



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

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

©2024 GRAS Group, Inc.RSS