Bagikan melalui


IcmpV4Statistics.TimestampRepliesReceived Properti

Definisi

Mendapatkan jumlah pesan Balasan Tanda Waktu Protokol Pesan Kontrol Internet versi 4 (ICMPv4) yang diterima.

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

Nilai Properti

Nilai Int64 yang menentukan jumlah total pesan Balasan Tanda Waktu yang diterima.

Contoh

Contoh berikut menampilkan nilai properti ini.

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

Keterangan

Pesan Permintaan Tanda Waktu menyebabkan komputer penerima mengirim balasan tanda waktu kembali ke komputer asal. Pesan-pesan ini digunakan untuk mengukur kecepatan transmisi pada jaringan.

Berlaku untuk