IcmpV4Statistics.TimeExceededMessagesSent 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取已发送的 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“超时”消息的总数。
示例
以下示例显示此属性的值。
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
注解
数据包的跃点限制确定在丢弃数据包之前可以转发的次数。 每次转发数据包时,其跃点限制值都会递减 1。 当跃点限制达到零时,或者当路由器收到其跃点限制设置为零的数据包时,数据包将被丢弃,数据包的源会收到一条超过时间的消息,指示初始跃点限制太小或数据包在路由循环中捕获。