IcmpV4Statistics.ErrorsSent プロパティ

定義

送信されたインターネット制御メッセージ プロトコル バージョン 4 (ICMPv4) エラー メッセージの数を取得します。

public:
 abstract property long ErrorsSent { long get(); };
public abstract long ErrorsSent { get; }
member this.ErrorsSent : int64
Public MustOverride ReadOnly Property ErrorsSent As Long

プロパティ値

送信された ICMP エラー メッセージの合計数を指定する Int64 値。

次の例では、このプロパティの値を表示します。

public static void ShowIcmpV4ErrorData()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV4Statistics statistics = properties.GetIcmpV4Statistics();
    Console.WriteLine("  Errors .............................. Sent: {0,-10}   Received: {1,-10}",
        statistics.ErrorsSent, statistics.ErrorsReceived);
}
Public Shared Sub ShowIcmpV4ErrorData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim statistics As IcmpV4Statistics = properties.GetIcmpV4Statistics()
    Console.WriteLine("  Errors .............................. Sent: {0,-10}   Received: {1,-10}", statistics.ErrorsSent, statistics.ErrorsReceived)

End Sub

適用対象