IcmpV6Statistics.TimeExceededMessagesSent 属性

定义

获取发送的 Internet 控制消息协议版本 6 (ICMPv6) 超时消息数。

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 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

注解

数据包的跃点限制决定了在丢弃数据包之前可以转发的次数。 每次转发数据包时,其跃点限制值都会递减 1。 当跃点限制达到零时,或者当路由器收到其跃点限制设置为零的数据包时,数据包将被丢弃,数据包的源会收到一条超过时间的消息,指示初始跃点限制太小或数据包在路由循环中捕获。

适用于