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

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

IPGlobalProperties.GetIcmpV4Statistics メソッド

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

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

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

Public MustOverride Function
 GetIcmpV4Statistics As IcmpV4Statistics
Dim instance As IPGlobalProperties
Dim returnValue As IcmpV4Statistics

returnValue = instance.GetIcmpV4Statistics
public abstract IcmpV4Statistics GetIcmpV4Statistics ()
public:
virtual IcmpV4Statistics^ GetIcmpV4Statistics () abstract
public abstract IcmpV4Statistics GetIcmpV4Statistics ()
public abstract function GetIcmpV4Statistics
 () : IcmpV4Statistics

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

例外例外
例外種類条件

NetworkInformationException

Win32 関数 GetIcmpStatistics失敗しました

解説解説
使用例使用例

現在の 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("");    
}
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
IPGlobalProperties クラス
IPGlobalProperties メンバ
System.Net.NetworkInformation 名前空間



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS