共用方式為


IcmpV4Statistics.TimeExceededMessagesSent 屬性

定義

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

public:
 abstract property long TimeExceededMessagesSent { long get(); };
public abstract long TimeExceededMessagesSent { get; }
member this.TimeExceededMessagesSent : int64
Public MustOverride ReadOnly Property TimeExceededMessagesSent 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

備註

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

適用於