IcmpV4Statistics.ErrorsSent Eigenschap

Definitie

Hiermee haalt u het aantal ICMPv4-foutberichten (Internet Control Message Protocol versie 4) op dat is verzonden.

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

Waarde van eigenschap

Een Int64 waarde die het totale aantal ICMP-foutberichten aangeeft dat is verzonden.

Voorbeelden

In het volgende voorbeeld wordt de waarde van deze eigenschap weergegeven.

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

Van toepassing op