Bagikan melalui


IcmpV6Statistics.TimeExceededMessagesSent Properti

Definisi

Mendapatkan jumlah Pesan Protokol Kontrol Internet versi 6 (ICMPv6) Waktu Terlampaui pesan yang dikirim.

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

Nilai Properti

Nilai Int64 yang menentukan jumlah total pesan ICMP Time Exceeded yang dikirim.

Contoh

Contoh berikut menampilkan nilai properti ini.

void ShowIcmpV6TimeExceededData()
{
   IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
   IcmpV6Statistics ^ statistics = properties->GetIcmpV6Statistics();
   Console::WriteLine( "  TimeExceeded ........................ Sent: {0,-10}   Received: {1,-10}", 
      statistics->TimeExceededMessagesSent, 
      statistics->TimeExceededMessagesReceived );
}
public static void ShowIcmpV6TimeExceededData ()
{
     IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV6Statistics statistics = properties.GetIcmpV6Statistics();
    Console.WriteLine ("  TimeExceeded ........................ Sent: {0,-10}   Received: {1,-10}",
        statistics.TimeExceededMessagesSent, statistics.TimeExceededMessagesReceived);
}
Public Shared Sub ShowIcmpV6TimeExceededData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim statistics As IcmpV6Statistics = properties.GetIcmpV6Statistics()
    Console.WriteLine("  TimeExceeded ........................ Sent: {0,-10}   Received: {1,-10}", statistics.TimeExceededMessagesSent, statistics.TimeExceededMessagesReceived)

End Sub

Keterangan

Batas Hop paket menentukan berapa kali paket dapat diteruskan sebelum dibuang. Setiap kali paket diteruskan, nilai Batas Hop-nya diderementasi oleh satu paket. Ketika Batas Hop mencapai nol atau ketika router menerima paket dengan Batas Hop-nya diatur ke nol, paket dibuang dan sumber paket menerima pesan Time Exceeded yang menunjukkan bahwa Batas Hop awal terlalu kecil atau bahwa paket tertangkap dalam perulangan perutean.

Berlaku untuk