IcmpV6Statistics.TimeExceededMessagesReceived 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得已收到的網際網路控制訊息通訊協定第 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
屬性值
Int64 值,指定已收到的 ICMP「超過時間」訊息總數。
範例
下列範例會顯示這個屬性的值。
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
備註
封包的躍點限制決定在捨棄之前可以轉送的次數。 每次轉送封包時,其躍點限制值會遞減一。 當躍點限制達到零或路由器收到其躍點限制設為零的封包時,封包會被捨棄,而封包的來源會收到「超過時間」訊息,指出初始躍點限制太小,或封包在路由迴圈中攔截到。