Partager via


IcmpV6Statistics.EchoRepliesReceived Propriété

Définition

Obtient le nombre de messages ICMPv6 de réponse à écho reçus.

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

Valeur de propriété

Valeur Int64 qui spécifie le nombre total de messages ICMP de réponse à écho reçus.

Exemples

L’exemple suivant affiche la valeur de cette propriété.

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

Remarques

Les messages de demande d’écho et de réponse d’écho permettent à un ordinateur de demander une réponse ICMP à partir d’un ordinateur distant sur un réseau. Cette fonctionnalité est souvent utilisée pour déterminer la validité des adresses distantes.

S’applique à