IcmpV4Statistics.TimestampRepliesReceived Egenskap

Definition

Hämtar antalet tidsstämpelsvarsmeddelanden för Internet Control Message Protocol version 4 (ICMPv4) som togs emot.

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

Egenskapsvärde

Ett Int64 värde som anger det totala antalet tidsstämpelsvarsmeddelanden som har tagits emot.

Exempel

I följande exempel visas värdet för den här egenskapen.

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

Kommentarer

Ett meddelande om tidsstämpelbegäran gör att den mottagande datorn skickar ett tidsstämpelsvar tillbaka till den ursprungliga datorn. Dessa meddelanden används för att mäta överföringshastigheten i ett nätverk.

Gäller för