IcmpV6Statistics.EchoRepliesSent プロパティ

定義

送信したインターネット コントロール メッセージ プロトコル Version 6 (ICMPv6) エコー応答メッセージの数を取得します。

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

プロパティ値

送信した ICMP エコー応答メッセージの合計数を示す Int64 値。

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

void ShowIcmpV6EchoData()
{
   IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
   IcmpV6Statistics ^ statistics = properties->GetIcmpV6Statistics();
   Console::WriteLine( "  Echo Requests ....................... Sent: {0,-10}   Received: {1,-10}", 
      statistics->EchoRequestsSent, statistics->EchoRequestsReceived );
   Console::WriteLine( "  Echo Replies ........................ Sent: {0,-10}   Received: {1,-10}", 
      statistics->EchoRepliesSent, statistics->EchoRepliesReceived );
}
public static void ShowIcmpV6EchoData ()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV6Statistics statistics = properties.GetIcmpV6Statistics();
    Console.WriteLine ("  Echo Requests ....................... Sent: {0,-10}   Received: {1,-10}",
        statistics.EchoRequestsSent, statistics.EchoRequestsReceived);
    Console.WriteLine ("  Echo Replies ........................ Sent: {0,-10}   Received: {1,-10}",
        statistics.EchoRepliesSent, statistics.EchoRepliesReceived);
}
Public Shared Sub ShowIcmpV6EchoData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim statistics As IcmpV6Statistics = properties.GetIcmpV6Statistics()
    Console.WriteLine("  Echo Requests ....................... Sent: {0,-10}   Received: {1,-10}", statistics.EchoRequestsSent, statistics.EchoRequestsReceived)
    Console.WriteLine("  Echo Replies ........................ Sent: {0,-10}   Received: {1,-10}", statistics.EchoRepliesSent, statistics.EchoRepliesReceived)

End Sub

注釈

エコー要求メッセージとエコー応答メッセージを使用すると、コンピューターはネットワーク上のリモート コンピューターから ICMP 応答を要求できます。 この機能は、リモート アドレスの有効性を判断するためによく使用されます。

適用対象