Freigeben über


IcmpV6Statistics.EchoRepliesSent Eigenschaft

Definition

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

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-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: