Partager via


IcmpV4Statistics.TimestampRepliesSent Propriété

Définition

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

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

Valeur de propriété

Valeur Int64 qui spécifie le nombre total de messages Réponse à horodateur qui ont été envoyés.

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 entraîne l’envoi d’une réponse timestamp à l’ordinateur d’origine par l’ordinateur de réception. Ces messages sont utilisés pour mesurer la vitesse de transmission sur un réseau.

S’applique à