共用方式為


IcmpV4Statistics.TimeExceededMessagesReceived 屬性

定義

取得已收到的網際網路控制訊息通訊協定第 4 版 (ICMPv4)「超過時間」訊息數目。

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

屬性值

Int64 值,指定已收到的 ICMP「超過時間」訊息總數。

範例

下列範例會顯示這個屬性的值。

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

End Sub

備註

封包的躍點限制會決定在捨棄封包之前可以轉送的次數。 每次轉送封包時,其躍點限制值會遞減一。 當躍點限制達到零或路由器收到其躍點限制設定為零的封包時,封包會被捨棄,而封包的來源會收到「超過時間」訊息,指出初始躍點限制太小,或封包在路由迴圈中攔截。

適用於