IcmpV4Statistics.ParameterProblemsReceived Właściwość

Definicja

Pobiera liczbę odebranych komunikatów o problemie z parametrami protokołu ICMPv4 (Internet Control Message Protocol w wersji 4 (ICMPv4).

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

Wartość właściwości

Wartość Int64 określająca łączną liczbę komunikatów o problemie z parametrem ICMP, które zostały odebrane.

Przykłady

Poniższy przykład przedstawia wartość tej właściwości.

void ShowParameterData()
{
   IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
   IcmpV4Statistics ^ statistics = properties->GetIcmpV4Statistics();
   Console::WriteLine( "  Parameter Problems .................. Sent: {0,-10}   Received: {1,-10}", 
      statistics->ParameterProblemsSent, 
      statistics->ParameterProblemsReceived );
}
public static void ShowParameterData()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV4Statistics statistics = properties.GetIcmpV4Statistics();
    Console.WriteLine("  Parameter Problems .................. Sent: {0,-10}   Received: {1,-10}",
        statistics.ParameterProblemsSent, statistics.ParameterProblemsReceived);
}
Public Shared Sub ShowParameterData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim statistics As IcmpV4Statistics = properties.GetIcmpV4Statistics()
    Console.WriteLine("  Parameter Problems .................. Sent: {0,-10}   Received: {1,-10}", statistics.ParameterProblemsSent, statistics.ParameterProblemsReceived)

End Sub

Uwagi

Komunikaty o problemie z parametrami są wysyłane, gdy komputer hosta lub router napotyka problemy podczas przetwarzania zawartości nagłówka pakietu, na przykład napotkania nieprawidłowej opcji IPv4 lub nieprawidłowego typu dalej nagłówka.

Dotyczy