IcmpV4Statistics.EchoRepliesSent Eigenschaft

Definition

Ruft die Anzahl der Internet Control Message Protocol Version 4 (ICMPv4) Echo Reply-Nachrichten, die gesendet wurden.

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

Eigenschaftswert

Ein Int64 Wert, der die Gesamtzahl der gesendeten ICMP Echo Reply-Nachrichten angibt.

Beispiele

Im folgenden Beispiel wird der Wert dieser Eigenschaft angezeigt.

public static void ShowIcmpV4EchoData()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV4Statistics statistics = properties.GetIcmpV4Statistics();
    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 ShowIcmpV4EchoData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim statistics As IcmpV4Statistics = properties.GetIcmpV4Statistics()
    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

Hinweise

Echo request and Echo Reply messages allow a computer to request an ICMP response from a remote computer on a network. Diese Funktion wird häufig verwendet, um die Gültigkeit von Remoteadressen zu ermitteln.

Gilt für: