IcmpV6Statistics.EchoRequestsReceived 属性
定义
获取接收的 Internet 控制消息协议版本 6 (ICMPv6) 回送请求消息数。Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Echo Request messages received.
public:
abstract property long EchoRequestsReceived { long get(); };
public abstract long EchoRequestsReceived { get; }
member this.EchoRequestsReceived : int64
Public MustOverride ReadOnly Property EchoRequestsReceived As Long
属性值
Int64 值,指定接收到的“ICMP 回送请求”消息的总数。An Int64 value that specifies the total number of number of ICMP Echo Request messages received.
示例
下面的示例显示此属性的值。The following example displays the value of this property.
void ShowIcmpV6EchoData()
{
IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
IcmpV6Statistics ^ statistics = properties->GetIcmpV6Statistics();
Console::WriteLine( " Echo Requests ....................... Sent: {0,-10} Received: {1,-10}",
statistics->EchoRequestsSent, statistics->EchoRequestsReceived );
Console::WriteLine( " Echo Replies ........................ Sent: {0,-10} Received: {1,-10}",
statistics->EchoRepliesSent, statistics->EchoRepliesReceived );
}
public static void ShowIcmpV6EchoData ()
{
IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
IcmpV6Statistics statistics = properties.GetIcmpV6Statistics();
Console.WriteLine (" Echo Requests ....................... Sent: {0,-10} Received: {1,-10}",
statistics.EchoRequestsSent, statistics.EchoRequestsReceived);
Console.WriteLine (" Echo Replies ........................ Sent: {0,-10} Received: {1,-10}",
statistics.EchoRepliesSent, statistics.EchoRepliesReceived);
}
Public Shared Sub ShowIcmpV6EchoData()
Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
Dim statistics As IcmpV6Statistics = properties.GetIcmpV6Statistics()
Console.WriteLine(" Echo Requests ....................... Sent: {0,-10} Received: {1,-10}", statistics.EchoRequestsSent, statistics.EchoRequestsReceived)
Console.WriteLine(" Echo Replies ........................ Sent: {0,-10} Received: {1,-10}", statistics.EchoRepliesSent, statistics.EchoRepliesReceived)
End Sub
注解
回显请求和回显回复消息允许计算机从网络上的远程计算机请求 ICMP 响应。Echo Request and Echo Reply messages allow a computer to request an ICMP response from a remote computer on a network. 此功能通常用于确定远程地址的有效性。This functionality is often used to determine the validity of remote addresses.