Freigeben über


IcmpV4Statistics Klasse

Definition

Stellt ICMPv4 (Internet Control Message Protocol für IPv4)-Statistikdaten für den lokalen Computer bereit.

public ref class IcmpV4Statistics abstract
public abstract class IcmpV4Statistics
type IcmpV4Statistics = class
Public MustInherit Class IcmpV4Statistics
Vererbung
IcmpV4Statistics

Beispiele

Im folgenden Beispiel werden die aktuellen ICMPv4-Statistiken angezeigt.

void ShowIcmpV4Statistics()
{
   IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
   IcmpV4Statistics ^ stat = properties->GetIcmpV4Statistics();
   Console::WriteLine( "ICMP V4 Statistics:" );
   Console::WriteLine( "  Messages ............................ Sent: {0,-10}   Received: {1,-10}", stat->MessagesSent, stat->MessagesReceived );
   Console::WriteLine( "  Errors .............................. Sent: {0,-10}   Received: {1,-10}", stat->ErrorsSent, stat->ErrorsReceived );
   Console::WriteLine( "  Echo Requests ....................... Sent: {0,-10}   Received: {1,-10}", stat->EchoRequestsSent, stat->EchoRequestsReceived );
   Console::WriteLine( "  Echo Replies ........................ Sent: {0,-10}   Received: {1,-10}", stat->EchoRepliesSent, stat->EchoRepliesReceived );
   Console::WriteLine( "  Destination Unreachables ............ Sent: {0,-10}   Received: {1,-10}", stat->DestinationUnreachableMessagesSent, stat->DestinationUnreachableMessagesReceived );
   Console::WriteLine( "  Source Quenches ..................... Sent: {0,-10}   Received: {1,-10}", stat->SourceQuenchesSent, stat->SourceQuenchesReceived );
   Console::WriteLine( "  Redirects ........................... Sent: {0,-10}   Received: {1,-10}", stat->RedirectsSent, stat->RedirectsReceived );
   Console::WriteLine( "  TimeExceeded ........................ Sent: {0,-10}   Received: {1,-10}", stat->TimeExceededMessagesSent, stat->TimeExceededMessagesReceived );
   Console::WriteLine( "  Parameter Problems .................. Sent: {0,-10}   Received: {1,-10}", stat->ParameterProblemsSent, stat->ParameterProblemsReceived );
   Console::WriteLine( "  Timestamp Requests .................. Sent: {0,-10}   Received: {1,-10}", stat->TimestampRequestsSent, stat->TimestampRequestsReceived );
   Console::WriteLine( "  Timestamp Replies ................... Sent: {0,-10}   Received: {1,-10}", stat->TimestampRepliesSent, stat->TimestampRepliesReceived );
   Console::WriteLine( "  Address Mask Requests ............... Sent: {0,-10}   Received: {1,-10}", stat->AddressMaskRequestsSent, stat->AddressMaskRequestsReceived );
   Console::WriteLine( "  Address Mask Replies ................ Sent: {0,-10}   Received: {1,-10}", stat->AddressMaskRepliesSent, stat->AddressMaskRepliesReceived );
   Console::WriteLine( "" );
}
public static void ShowIcmpV4Statistics()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV4Statistics stat = properties.GetIcmpV4Statistics();
    Console.WriteLine("ICMP V4 Statistics:");

    Console.WriteLine("  Messages ............................ Sent: {0,-10}   Received: {1,-10}",
        stat.MessagesSent, stat.MessagesReceived);
    Console.WriteLine("  Errors .............................. Sent: {0,-10}   Received: {1,-10}",
        stat.ErrorsSent, stat.ErrorsReceived);

    Console.WriteLine("  Echo Requests ....................... Sent: {0,-10}   Received: {1,-10}",
        stat.EchoRequestsSent, stat.EchoRequestsReceived);
    Console.WriteLine("  Echo Replies ........................ Sent: {0,-10}   Received: {1,-10}",
        stat.EchoRepliesSent, stat.EchoRepliesReceived);

    Console.WriteLine("  Destination Unreachables ............ Sent: {0,-10}   Received: {1,-10}",
        stat.DestinationUnreachableMessagesSent, stat.DestinationUnreachableMessagesReceived);

    Console.WriteLine("  Source Quenches ..................... Sent: {0,-10}   Received: {1,-10}",
        stat.SourceQuenchesSent, stat.SourceQuenchesReceived);

    Console.WriteLine("  Redirects ........................... Sent: {0,-10}   Received: {1,-10}",
        stat.RedirectsSent, stat.RedirectsReceived);

    Console.WriteLine("  TimeExceeded ........................ Sent: {0,-10}   Received: {1,-10}",
        stat.TimeExceededMessagesSent, stat.TimeExceededMessagesReceived);

    Console.WriteLine("  Parameter Problems .................. Sent: {0,-10}   Received: {1,-10}",
        stat.ParameterProblemsSent, stat.ParameterProblemsReceived);

    Console.WriteLine("  Timestamp Requests .................. Sent: {0,-10}   Received: {1,-10}",
        stat.TimestampRequestsSent, stat.TimestampRequestsReceived);
    Console.WriteLine("  Timestamp Replies ................... Sent: {0,-10}   Received: {1,-10}",
        stat.TimestampRepliesSent, stat.TimestampRepliesReceived);

    Console.WriteLine("  Address Mask Requests ............... Sent: {0,-10}   Received: {1,-10}",
        stat.AddressMaskRequestsSent, stat.AddressMaskRequestsReceived);
    Console.WriteLine("  Address Mask Replies ................ Sent: {0,-10}   Received: {1,-10}",
        stat.AddressMaskRepliesSent, stat.AddressMaskRepliesReceived);
    Console.WriteLine("");
}

Hinweise

ICMPv4 ist eine Reihe von Fehler- und Informationsmeldungen für die Verwendung mit Internetprotokoll, Version 4. ICMP Version 4 ist in IETF RFC 792 definiert.

Diese Klasse wird von der GetIcmpV4Statistics -Methode verwendet, um ICMPv4-Datenverkehrsinformationen zurückzugeben.

Konstruktoren

IcmpV4Statistics()

Initialisiert eine neue Instanz der IcmpV4Statistics-Klasse.

Eigenschaften

AddressMaskRepliesReceived

Ruft die Anzahl der empfangenen ICMPv4 (Internet Control Message Protocol, Version 4)-Address Mask Reply-Meldungen ab.

AddressMaskRepliesSent

Ruft die Anzahl der gesendeten ICMPv4 (Internet Control Message Protocol, Version 4)-Address Mask Reply-Meldungen ab.

AddressMaskRequestsReceived

Ruft die Anzahl der empfangenen ICMPv4 (Internet Control Message Protocol, Version 4)-Address Mask Request-Meldungen ab.

AddressMaskRequestsSent

Ruft die Anzahl der gesendeten ICMPv4 (Internet Control Message Protocol, Version 4)-Address Mask Request-Meldungen ab.

DestinationUnreachableMessagesReceived

Ruft die Anzahl der ICMPv4 (Internet Control Message Protocol, Version 4)-Meldungen ab, die empfangen wurden, weil die als Ziel eines Pakets angegebene Adresse nicht erreichbar ist.

DestinationUnreachableMessagesSent

Ruft die Anzahl der ICMPv4 (Internet Control Message Protocol, Version 4)-Meldungen ab, die gesendet wurden, weil die als Ziel eines Pakets angegebene Adresse nicht erreichbar ist.

EchoRepliesReceived

Ruft die Anzahl der empfangenen ICMPv4 (Internet Control Message Protocol, Version 4)-Echo Reply-Meldungen ab.

EchoRepliesSent

Ruft die Anzahl der gesendeten ICMPv4 (Internet Control Message Protocol, Version 4)-Echo Reply-Meldungen ab.

EchoRequestsReceived

Ruft die Anzahl der empfangenen ICMPv4 (Internet Control Message Protocol, Version 4)-Echo Request-Meldungen ab.

EchoRequestsSent

Ruft die Anzahl der gesendeten ICMPv4 (Internet Control Message Protocol, Version 4)-Echo Request-Meldungen ab.

ErrorsReceived

Ruft die Anzahl der empfangenen ICMPv4 (Internet Control Message Protocol, Version 4)-Fehlermeldungen ab.

ErrorsSent

Ruft die Anzahl der gesendeten ICMPv4 (Internet Control Message Protocol, Version 4)-Fehlermeldungen ab.

MessagesReceived

Ruft die Anzahl der empfangenen Internet Control Message Protocol-Meldungen ab.

MessagesSent

Ruft die Anzahl der gesendeten ICMPv4 (Internet Control Message Protocol, Version 4)-Meldungen ab.

ParameterProblemsReceived

Ruft die Anzahl der empfangenen ICMPv4 (Internet Control Message Protocol, Version 4)-Parameter Problem-Meldungen ab.

ParameterProblemsSent

Ruft die Anzahl der gesendeten ICMPv4 (Internet Control Message Protocol, Version 4)-Parameter Problem-Meldungen ab.

RedirectsReceived

Ruft die Anzahl der empfangenen ICMPv4 (Internet Control Message Protocol, Version 4)-Redirect-Meldungen ab.

RedirectsSent

Ruft die Anzahl der gesendeten ICMPv4 (Internet Control Message Protocol, Version 4)-Redirect-Meldungen ab.

SourceQuenchesReceived

Ruft die Anzahl der empfangenen ICMPv4 (Internet Control Message Protocol, Version 4)-Source Quench-Meldungen ab.

SourceQuenchesSent

Ruft die Anzahl der gesendeten ICMPv4 (Internet Control Message Protocol, Version 4)-Source Quench-Meldungen ab.

TimeExceededMessagesReceived

Ruft die Anzahl der empfangenen ICMPv4 (Internet Control Message Protocol, Version 4)-Time Exceeded-Meldungen ab.

TimeExceededMessagesSent

Ruft die Anzahl der gesendeten ICMPv4 (Internet Control Message Protocol, Version 4)-Time Exceeded-Meldungen ab.

TimestampRepliesReceived

Ruft die Anzahl der empfangenen ICMPv4 (Internet Control Message Protocol, Version 4)-Timestamp Reply-Meldungen ab.

TimestampRepliesSent

Ruft die Anzahl der gesendeten ICMPv4 (Internet Control Message Protocol, Version 4)-Timestamp Reply-Meldungen ab.

TimestampRequestsReceived

Ruft die Anzahl der empfangenen ICMPv4 (Internet Control Message Protocol, Version 4)-Timestamp Request-Meldungen ab.

TimestampRequestsSent

Ruft die Anzahl der gesendeten ICMPv4 (Internet Control Message Protocol, Version 4)-Timestamp Request-Meldungen ab.

Methoden

Equals(Object)

Bestimmt, ob das angegebene Objekt gleich dem aktuellen Objekt ist.

(Geerbt von Object)
GetHashCode()

Fungiert als Standardhashfunktion.

(Geerbt von Object)
GetType()

Ruft den Type der aktuellen Instanz ab.

(Geerbt von Object)
MemberwiseClone()

Erstellt eine flache Kopie des aktuellen Object.

(Geerbt von Object)
ToString()

Gibt eine Zeichenfolge zurück, die das aktuelle Objekt darstellt.

(Geerbt von Object)

Gilt für: