Partager via


IcmpV4Statistics.TimestampRepliesReceived Propriété

Définition

Obtient le nombre de messages Réponse à horodateur ICMPv4 (Internet Control Message Protocol version 4) qui ont été reçus.

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

Valeur de propriété

Valeur Int64 qui spécifie le nombre total de messages Réponse à horodateur qui ont été reçus.

Exemples

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

void ShowTimestampData()
{
   IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
   IcmpV4Statistics ^ statistics = properties->GetIcmpV4Statistics();
   Console::WriteLine( "  Timestamp Requests .................. Sent: {0,-10}   Received: {1,-10}", 
      statistics->TimestampRequestsSent, 
      statistics->TimestampRequestsReceived );
   Console::WriteLine( "  Timestamp Replies ................... Sent: {0,-10}   Received: {1,-10}", 
      statistics->TimestampRepliesSent, 
      statistics->TimestampRepliesReceived );
}
public static void ShowTimestampData()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV4Statistics statistics = properties.GetIcmpV4Statistics();
    Console.WriteLine("  Timestamp Requests .................. Sent: {0,-10}   Received: {1,-10}",
        statistics.TimestampRequestsSent, statistics.TimestampRequestsReceived);
    Console.WriteLine("  Timestamp Replies ................... Sent: {0,-10}   Received: {1,-10}",
        statistics.TimestampRepliesSent, statistics.TimestampRepliesReceived);
}
Public Shared Sub ShowTimestampData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim statistics As IcmpV4Statistics = properties.GetIcmpV4Statistics()
    Console.WriteLine("  Timestamp Requests .................. Sent: {0,-10}   Received: {1,-10}", statistics.TimestampRequestsSent, statistics.TimestampRequestsReceived)
    Console.WriteLine("  Timestamp Replies ................... Sent: {0,-10}   Received: {1,-10}", statistics.TimestampRepliesSent, statistics.TimestampRepliesReceived)

End Sub

Remarques

Un message de demande d’horodatage oblige l’ordinateur de réception à renvoyer une réponse d’horodatage à l’ordinateur d’origine. Ces messages sont utilisés pour mesurer la vitesse de transmission sur un réseau.

S’applique à