Bagikan melalui


IcmpV6Statistics.TimeExceededMessagesReceived Properti

Definisi

Mendapatkan jumlah pesan Time Exceeded Protokol Pesan Kontrol Internet versi 6 (ICMPv6).

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

Nilai Properti

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

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 dapat diteruskan sebelum dibuang. Setiap kali paket diteruskan, nilai Batas Hop-nya dikurangi 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