IcmpV4Statistics.ErrorsReceived 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得已收到的網際網路控制訊息通訊協定第 4 版 (ICMPv4) 錯誤訊息數目。
public:
abstract property long ErrorsReceived { long get(); };
public abstract long ErrorsReceived { get; }
[System.Runtime.Versioning.UnsupportedOSPlatform("freebsd")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("osx")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public abstract long ErrorsReceived { get; }
member this.ErrorsReceived : int64
[<System.Runtime.Versioning.UnsupportedOSPlatform("freebsd")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("osx")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
member this.ErrorsReceived : int64
Public MustOverride ReadOnly Property ErrorsReceived As Long
屬性值
Int64 值,指定已收到的 ICMP 錯誤訊息總數。
- 屬性
範例
下列範例會顯示這個屬性的值。
void ShowIcmpV4ErrorData()
{
IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
IcmpV4Statistics ^ statistics = properties->GetIcmpV4Statistics();
Console::WriteLine( " Errors .............................. Sent: {0,-10} Received: {1,-10}",
statistics->ErrorsSent,
statistics->ErrorsReceived );
}
public static void ShowIcmpV4ErrorData()
{
IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
IcmpV4Statistics statistics = properties.GetIcmpV4Statistics();
Console.WriteLine(" Errors .............................. Sent: {0,-10} Received: {1,-10}",
statistics.ErrorsSent, statistics.ErrorsReceived);
}
Public Shared Sub ShowIcmpV4ErrorData()
Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
Dim statistics As IcmpV4Statistics = properties.GetIcmpV4Statistics()
Console.WriteLine(" Errors .............................. Sent: {0,-10} Received: {1,-10}", statistics.ErrorsSent, statistics.ErrorsReceived)
End Sub