IPGlobalProperties.GetIcmpV6Statistics メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > IPGlobalProperties.GetIcmpV6Statistics メソッドの意味・解説 

IPGlobalProperties.GetIcmpV6Statistics メソッド

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

ローカル コンピュータインターネット コントロール メッセージ プロトコル (ICMP) Version 6 の統計データ提供します

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

Public MustOverride Function
 GetIcmpV6Statistics As IcmpV6Statistics
Dim instance As IPGlobalProperties
Dim returnValue As IcmpV6Statistics

returnValue = instance.GetIcmpV6Statistics
public abstract IcmpV6Statistics GetIcmpV6Statistics ()
public:
virtual IcmpV6Statistics^ GetIcmpV6Statistics () abstract
public abstract IcmpV6Statistics GetIcmpV6Statistics ()
public abstract function GetIcmpV6Statistics
 () : IcmpV6Statistics

戻り値
ローカル コンピュータICMP version 6 トラフィック統計情報提供する IcmpV6Statistics オブジェクト

例外例外
例外種類条件

NetworkInformationException

Win32 関数 GetIcmpStatisticsEx失敗しました

PlatformNotSupportedException

ローカル コンピュータオペレーティング システムWindows XP 以降ではありません。

解説解説
使用例使用例

現在の ICMPv6 統計情報表示するコード例次に示します

public static void ShowIcmpV6Statistics()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV6Statistics stat = properties.GetIcmpV6Statistics();
    Console.WriteLine("ICMP V6 Statistics:");
    Console.WriteLine("  Messages ............................ Sent: {0,-10}
   Received: {1,-10}",
        stat.MessagesSent, stat.MessagesReceived);
    Console.WriteLine("  Errors .............................. Sent: {0,-10}
   Received: {1,-10}",
        stat.ErrorsSent, stat.ErrorsReceived);
        
    Console.WriteLine("  Echo Requests ....................... Sent: {0,-10}
   Received: {1,-10}",
        stat.EchoRequestsSent, stat.EchoRequestsReceived);
    Console.WriteLine("  Echo Replies ........................ Sent: {0,-10}
   Received: {1,-10}",
        stat.EchoRepliesSent, stat.EchoRepliesReceived);
    
    Console.WriteLine("  Destination Unreachables ............ Sent: {0,-10}
   Received: {1,-10}",
        stat.DestinationUnreachableMessagesSent, stat.DestinationUnreachableMessagesReceived);
        
    Console.WriteLine("  Parameter Problems .................. Sent: {0,-10}
   Received: {1,-10}",
        stat.ParameterProblemsSent, stat.ParameterProblemsReceived);        
        
    Console.WriteLine("  Packets Too Big ..................... Sent: {0,-10}
   Received: {1,-10}",
        stat.PacketTooBigMessagesSent, stat.PacketTooBigMessagesReceived);
        
    Console.WriteLine("  Redirects ........................... Sent: {0,-10}
   Received: {1,-10}",
        stat.RedirectsSent, stat.RedirectsReceived);
        
    Console.WriteLine("  Router Advertisements ............... Sent: {0,-10}
   Received: {1,-10}",
        stat.RouterAdvertisementsSent, stat.RouterAdvertisementsReceived);      
              
    Console.WriteLine("  Router Solicitations ................ Sent: {0,-10}
   Received: {1,-10}",
        stat.RouterSolicitsSent, stat.RouterSolicitsReceived);        
        
    Console.WriteLine("  Time Exceeded ....................... Sent: {0,-10}
   Received: {1,-10}",
        stat.TimeExceededMessagesSent, stat.TimeExceededMessagesReceived);
                                
    Console.WriteLine("  Neighbor Advertisements ............. Sent: {0,-10}
   Received: {1,-10}",
        stat.NeighborAdvertisementsSent, stat.NeighborAdvertisementsReceived);  
      
    Console.WriteLine("  Neighbor Solicitations .............. Sent: {0,-10}
   Received: {1,-10}",
        stat.NeighborSolicitsSent, stat.NeighborSolicitsReceived);        
    
    Console.WriteLine("  Membership Queries .................. Sent: {0,-10}
   Received: {1,-10}",
        stat.MembershipQueriesSent, stat.MembershipQueriesReceived);    
    Console.WriteLine("  Membership Reports .................. Sent: {0,-10}
   Received: {1,-10}",
        stat.MembershipReportsSent, stat.MembershipReportsReceived);    
    Console.WriteLine("  Membership Reductions ............... Sent: {0,-10}
   Received: {1,-10}",
        stat.MembershipReductionsSent, stat.MembershipReductionsReceived);    
        
    Console.WriteLine("");
}
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
IPGlobalProperties クラス
IPGlobalProperties メンバ
System.Net.NetworkInformation 名前空間



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

辞書ショートカット

すべての辞書の索引

IPGlobalProperties.GetIcmpV6Statistics メソッドのお隣キーワード
検索ランキング

   

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



IPGlobalProperties.GetIcmpV6Statistics メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS