IcmpV4Statistics.EchoRepliesReceived Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient le nombre de messages de réponse écho echo version 4 (ICMPv4) du protocole Internet Control Message Protocol version 4 qui ont été 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 Echo Reply reçus.
Exemples
L’exemple suivant affiche la valeur de cette propriété.
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
Remarques
Les messages Echo Request et Echo Reply 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.