IcmpV4Statistics.ParameterProblemsReceived Свойство

Определение

Возвращает количество полученных сообщений ICMPv4 "Ошибка параметра" (Parameter Problem).

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

Значение свойства

Значение типа Int64, указывающее общее количество полученных сообщений ICMP "Ошибка параметра" (Parameter Problem).

Примеры

В следующем примере отображается значение этого свойства.

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

Комментарии

Сообщения о проблеме с параметрами отправляются, когда главный компьютер или маршрутизатор сталкивается с проблемами при обработке содержимого заголовка пакета, например при обнаружении недопустимого параметра IPv4 или недопустимого типа следующего заголовка.

Применяется к