IcmpV4Statistics クラスとは? わかりやすく解説

IcmpV4Statistics クラス

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

ローカル コンピュータInternet Control Message Protocol for IPv4 (ICMPv4) の統計データ提供します

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

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

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

public static void ShowIcmpV4Statistics()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV4Statistics stat = properties.GetIcmpV4Statistics();
    Console.WriteLine("ICMP V4 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("  Source Quenches ..................... Sent: {0,-10}
   Received: {1,-10}",
        stat.SourceQuenchesSent, stat.SourceQuenchesReceived);
        
    Console.WriteLine("  Redirects ........................... Sent: {0,-10}
   Received: {1,-10}",
        stat.RedirectsSent, stat.RedirectsReceived);  
        
    Console.WriteLine("  TimeExceeded ........................ Sent: {0,-10}
   Received: {1,-10}",
        stat.TimeExceededMessagesSent, stat.TimeExceededMessagesReceived);
                                
    Console.WriteLine("  Parameter Problems .................. Sent: {0,-10}
   Received: {1,-10}",
        stat.ParameterProblemsSent, stat.ParameterProblemsReceived);        
        
    Console.WriteLine("  Timestamp Requests .................. Sent: {0,-10}
   Received: {1,-10}",
        stat.TimestampRequestsSent, stat.TimestampRequestsReceived);    
    Console.WriteLine("  Timestamp Replies ................... Sent: {0,-10}
   Received: {1,-10}",
        stat.TimestampRepliesSent, stat.TimestampRepliesReceived);    
        
    Console.WriteLine("  Address Mask Requests ............... Sent: {0,-10}
   Received: {1,-10}",
        stat.AddressMaskRequestsSent, stat.AddressMaskRequestsReceived);    
    Console.WriteLine("  Address Mask Replies ................ Sent: {0,-10}
   Received: {1,-10}",
        stat.AddressMaskRepliesSent, stat.AddressMaskRepliesReceived);          
          
    Console.WriteLine("");    
}
継承階層継承階層
System.Object
  System.Net.NetworkInformation.IcmpV4Statistics
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
IcmpV4Statistics メンバ
System.Net.NetworkInformation 名前空間



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

辞書ショートカット

すべての辞書の索引

「IcmpV4Statistics クラス」の関連用語

IcmpV4Statistics クラスのお隣キーワード
検索ランキング

   

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



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

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

©2025 GRAS Group, Inc.RSS