IcmpV6Statistics.EchoRepliesReceived Eigenschaft

Definition

Ruft die Anzahl der empfangenen ICMPv6 (Internet Control Message Protocol, Version 6)-Echo Reply-Meldungen ab.

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

Eigenschaftswert

Ein Int64-Wert, der die Gesamtzahl der empfangenen ICMP-Echo Reply-Meldungen angibt.

Beispiele

Im folgenden Beispiel wird der Wert dieser Eigenschaft angezeigt.

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

Hinweise

Echo Request- und Echo Reply-Nachrichten ermöglichen es einem Computer, eine ICMP-Antwort von einem Remotecomputer in einem Netzwerk anzufordern. Diese Funktionalität wird häufig verwendet, um die Gültigkeit von Remoteadressen zu bestimmen.

Gilt für: