IcmpV4Statistics.ParameterProblemsSent Свойство

Определение

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

public:
 abstract property long ParameterProblemsSent { long get(); };
public abstract long ParameterProblemsSent { get; }
member this.ParameterProblemsSent : int64
Public MustOverride ReadOnly Property ParameterProblemsSent 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 или недопустимого типа следующего заголовка.

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