IcmpV4Statistics.TimestampRequestsReceived 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 demande d’horodatage ICMPv4 (Internet Control Message Protocol version 4) reçus.
public:
abstract property long TimestampRequestsReceived { long get(); };
public abstract long TimestampRequestsReceived { get; }
member this.TimestampRequestsReceived : int64
Public MustOverride ReadOnly Property TimestampRequestsReceived As Long
Valeur de propriété
Valeur Int64 qui spécifie le nombre total de messages de demande d’horodatage reçus.
Exemples
L’exemple suivant affiche la valeur de cette propriété.
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. Ces messages sont utilisés pour mesurer la vitesse de transmission sur un réseau.