IcmpV4Statistics.TimeExceededMessagesSent 属性

定义

获取已发送的 Internet 控制消息协议版本 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 时间超过消息的总数。

示例

以下示例显示此属性的值。

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

注解

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

适用于