IcmpV4Statistics IcmpV4Statistics IcmpV4Statistics IcmpV4Statistics Class

Definition

Stellt ICMPv4 (Internet Control Message Protocol für IPv4)-Statistikdaten für den lokalen Computer bereit.Provides Internet Control Message Protocol for IPv4 (ICMPv4) statistical data for the local computer.

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

Beispiele

Das folgende Beispiel zeigt die aktuellen ICMPv4-Statistiken.The following example displays the current ICMPv4 statistics.

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 ein Satz von Fehler- und informationsmeldungen für die Verwendung mit Internet Protocol, Version 4.ICMPv4 is a set of error and informational messages for use with Internet Protocol version 4. ICMP-Version 4 wird in IETF RFC 792 definiert.ICMP version 4 is defined in IETF RFC 792.

Diese Klasse wird verwendet, durch die GetIcmpV4Statistics Methode zum Zurückgeben von Informationen für ICMPv4-Datenverkehr.This class is used by the GetIcmpV4Statistics method to return ICMPv4 traffic information.

Konstruktoren

IcmpV4Statistics() IcmpV4Statistics() IcmpV4Statistics() IcmpV4Statistics()

Initialisiert eine neue Instanz der IcmpV4Statistics-Klasse.Initializes a new instance of the IcmpV4Statistics class.

Eigenschaften

AddressMaskRepliesReceived AddressMaskRepliesReceived AddressMaskRepliesReceived AddressMaskRepliesReceived

Ruft die Anzahl der empfangenen ICMPv4 (Internet Control Message Protocol, Version 4)-Address Mask Reply-Meldungen ab.Gets the number of Internet Control Message Protocol version 4 (ICMPv4) Address Mask Reply messages that were received.

AddressMaskRepliesSent AddressMaskRepliesSent AddressMaskRepliesSent AddressMaskRepliesSent

Ruft die Anzahl der gesendeten ICMPv4 (Internet Control Message Protocol, Version 4)-Address Mask Reply-Meldungen ab.Gets the number of Internet Control Message Protocol version 4 (ICMPv4) Address Mask Reply messages that were sent.

AddressMaskRequestsReceived AddressMaskRequestsReceived AddressMaskRequestsReceived AddressMaskRequestsReceived

Ruft die Anzahl der empfangenen ICMPv4 (Internet Control Message Protocol, Version 4)-Address Mask Request-Meldungen ab.Gets the number of Internet Control Message Protocol version 4 (ICMPv4) Address Mask Request messages that were received.

AddressMaskRequestsSent AddressMaskRequestsSent AddressMaskRequestsSent AddressMaskRequestsSent

Ruft die Anzahl der gesendeten ICMPv4 (Internet Control Message Protocol, Version 4)-Address Mask Request-Meldungen ab.Gets the number of Internet Control Message Protocol version 4 (ICMPv4) Address Mask Request messages that were sent.

DestinationUnreachableMessagesReceived DestinationUnreachableMessagesReceived DestinationUnreachableMessagesReceived 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.Gets the number of Internet Control Message Protocol version 4 (ICMPv4) messages that were received because of a packet having an unreachable address in its destination.

DestinationUnreachableMessagesSent DestinationUnreachableMessagesSent DestinationUnreachableMessagesSent 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.Gets the number of Internet Control Message Protocol version 4 (ICMPv4) messages that were sent because of a packet having an unreachable address in its destination.

EchoRepliesReceived EchoRepliesReceived EchoRepliesReceived EchoRepliesReceived

Ruft die Anzahl der empfangenen ICMPv4 (Internet Control Message Protocol, Version 4)-Echo Reply-Meldungen ab.Gets the number of Internet Control Message Protocol version 4 (ICMPv4) Echo Reply messages that were received.

EchoRepliesSent EchoRepliesSent EchoRepliesSent EchoRepliesSent

Ruft die Anzahl der gesendeten ICMPv4 (Internet Control Message Protocol, Version 4)-Echo Reply-Meldungen ab.Gets the number of Internet Control Message Protocol version 4 (ICMPv4) Echo Reply messages that were sent.

EchoRequestsReceived EchoRequestsReceived EchoRequestsReceived EchoRequestsReceived

Ruft die Anzahl der empfangenen ICMPv4 (Internet Control Message Protocol, Version 4)-Echo Request-Meldungen ab.Gets the number of Internet Control Message Protocol version 4 (ICMPv4) Echo Request messages that were received.

EchoRequestsSent EchoRequestsSent EchoRequestsSent EchoRequestsSent

Ruft die Anzahl der gesendeten ICMPv4 (Internet Control Message Protocol, Version 4)-Echo Request-Meldungen ab.Gets the number of Internet Control Message Protocol version 4 (ICMPv4) Echo Request messages that were sent.

ErrorsReceived ErrorsReceived ErrorsReceived ErrorsReceived

Ruft die Anzahl der empfangenen ICMPv4 (Internet Control Message Protocol, Version 4)-Fehlermeldungen ab.Gets the number of Internet Control Message Protocol version 4 (ICMPv4) error messages that were received.

ErrorsSent ErrorsSent ErrorsSent ErrorsSent

Ruft die Anzahl der gesendeten ICMPv4 (Internet Control Message Protocol, Version 4)-Fehlermeldungen ab.Gets the number of Internet Control Message Protocol version 4 (ICMPv4) error messages that were sent.

MessagesReceived MessagesReceived MessagesReceived MessagesReceived

Ruft die Anzahl der empfangenen Internet Control Message Protocol-Meldungen ab.Gets the number of Internet Control Message Protocol messages that were received.

MessagesSent MessagesSent MessagesSent MessagesSent

Ruft die Anzahl der gesendeten ICMPv4 (Internet Control Message Protocol, Version 4)-Meldungen ab.Gets the number of Internet Control Message Protocol version 4 (ICMPv4) messages that were sent.

ParameterProblemsReceived ParameterProblemsReceived ParameterProblemsReceived ParameterProblemsReceived

Ruft die Anzahl der empfangenen ICMPv4 (Internet Control Message Protocol, Version 4)-Parameter Problem-Meldungen ab.Gets the number of Internet Control Message Protocol version 4 (ICMPv4) Parameter Problem messages that were received.

ParameterProblemsSent ParameterProblemsSent ParameterProblemsSent ParameterProblemsSent

Ruft die Anzahl der gesendeten ICMPv4 (Internet Control Message Protocol, Version 4)-Parameter Problem-Meldungen ab.Gets the number of Internet Control Message Protocol version 4 (ICMPv4) Parameter Problem messages that were sent.

RedirectsReceived RedirectsReceived RedirectsReceived RedirectsReceived

Ruft die Anzahl der empfangenen ICMPv4 (Internet Control Message Protocol, Version 4)-Redirect-Meldungen ab.Gets the number of Internet Control Message Protocol version 4 (ICMPv4) Redirect messages that were received.

RedirectsSent RedirectsSent RedirectsSent RedirectsSent

Ruft die Anzahl der gesendeten ICMPv4 (Internet Control Message Protocol, Version 4)-Redirect-Meldungen ab.Gets the number of Internet Control Message Protocol version 4 (ICMPv4) Redirect messages that were sent.

SourceQuenchesReceived SourceQuenchesReceived SourceQuenchesReceived SourceQuenchesReceived

Ruft die Anzahl der empfangenen ICMPv4 (Internet Control Message Protocol, Version 4)-Source Quench-Meldungen ab.Gets the number of Internet Control Message Protocol version 4 (ICMPv4) Source Quench messages that were received.

SourceQuenchesSent SourceQuenchesSent SourceQuenchesSent SourceQuenchesSent

Ruft die Anzahl der gesendeten ICMPv4 (Internet Control Message Protocol, Version 4)-Source Quench-Meldungen ab.Gets the number of Internet Control Message Protocol version 4 (ICMPv4) Source Quench messages that were sent.

TimeExceededMessagesReceived TimeExceededMessagesReceived TimeExceededMessagesReceived TimeExceededMessagesReceived

Ruft die Anzahl der empfangenen ICMPv4 (Internet Control Message Protocol, Version 4)-Time Exceeded-Meldungen ab.Gets the number of Internet Control Message Protocol version 4 (ICMPv4) Time Exceeded messages that were received.

TimeExceededMessagesSent TimeExceededMessagesSent TimeExceededMessagesSent TimeExceededMessagesSent

Ruft die Anzahl der gesendeten ICMPv4 (Internet Control Message Protocol, Version 4)-Time Exceeded-Meldungen ab.Gets the number of Internet Control Message Protocol version 4 (ICMPv4) Time Exceeded messages that were sent.

TimestampRepliesReceived TimestampRepliesReceived TimestampRepliesReceived TimestampRepliesReceived

Ruft die Anzahl der empfangenen ICMPv4 (Internet Control Message Protocol, Version 4)-Timestamp Reply-Meldungen ab.Gets the number of Internet Control Message Protocol version 4 (ICMPv4) Timestamp Reply messages that were received.

TimestampRepliesSent TimestampRepliesSent TimestampRepliesSent TimestampRepliesSent

Ruft die Anzahl der gesendeten ICMPv4 (Internet Control Message Protocol, Version 4)-Timestamp Reply-Meldungen ab.Gets the number of Internet Control Message Protocol version 4 (ICMPv4) Timestamp Reply messages that were sent.

TimestampRequestsReceived TimestampRequestsReceived TimestampRequestsReceived TimestampRequestsReceived

Ruft die Anzahl der empfangenen ICMPv4 (Internet Control Message Protocol, Version 4)-Timestamp Request-Meldungen ab.Gets the number of Internet Control Message Protocol version 4 (ICMPv4) Timestamp Request messages that were received.

TimestampRequestsSent TimestampRequestsSent TimestampRequestsSent TimestampRequestsSent

Ruft die Anzahl der gesendeten ICMPv4 (Internet Control Message Protocol, Version 4)-Timestamp Request-Meldungen ab.Gets the number of Internet Control Message Protocol version 4 (ICMPv4) Timestamp Request messages that were sent.

Methoden

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Bestimmt, ob das angegebene Objekt mit dem aktuellen Objekt identisch ist.Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Fungiert als Standardhashfunktion.Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Ruft den Type der aktuellen Instanz ab.Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Erstellt eine flache Kopie des aktuellen Object.Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Gibt eine Zeichenfolge zurück, die das aktuelle Objekt darstellt.Returns a string that represents the current object.

(Inherited from Object)

Gilt für: