Bagikan melalui


IcmpV4Statistics.TimestampRepliesSent Properti

Definisi

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

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

Nilai Properti

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

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