IcmpV6Statistics.ErrorsSent 属性

定义

获取发送的 Internet 控制消息协议版本 6 (ICMPv6) 错误信息数。Gets the number of Internet Control Message Protocol version 6 (ICMPv6) error messages sent.

public:
 abstract property long ErrorsSent { long get(); };
public abstract long ErrorsSent { get; }
member this.ErrorsSent : int64
Public MustOverride ReadOnly Property ErrorsSent As Long

属性值

Int64

Int64 值,指定发送的 ICMP 错误信息的总数。An Int64 value that specifies the total number of ICMP error messages sent.

示例

下面的示例显示此属性的值。The following example displays the value of this property.

void ShowIcmpV6ErrorData()
{
   IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
   IcmpV6Statistics ^ statistics = properties->GetIcmpV6Statistics();
   Console::WriteLine( "  Errors .............................. Sent: {0,-10}   Received: {1,-10}", 
      statistics->ErrorsSent, statistics->ErrorsReceived );
}
public static void ShowIcmpV6ErrorData ()
{
     IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV6Statistics statistics = properties.GetIcmpV6Statistics();
    Console.WriteLine ("  Errors .............................. Sent: {0,-10}   Received: {1,-10}",
        statistics.ErrorsSent, statistics.ErrorsReceived);
}

Public Shared Sub ShowIcmpV6ErrorData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim statistics As IcmpV6Statistics = properties.GetIcmpV6Statistics()
    Console.WriteLine("  Errors .............................. Sent: {0,-10}   Received: {1,-10}", statistics.ErrorsSent, statistics.ErrorsReceived)

End Sub


适用于