Share via


IcmpV4Statistics.ParameterProblemsSent Propriété

Définition

Obtient le nombre de messages Problème de paramètre ICMPv4 (Internet Control Message Protocol version 4) qui ont été envoyés.

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

Valeur de propriété

Valeur Int64 qui spécifie le nombre total de messages Problème de paramètre ICMP qui ont été envoyés.

Exemples

L’exemple suivant affiche la valeur de cette propriété.

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

Remarques

Paramètre Des messages de problème sont envoyés lorsqu’un ordinateur hôte ou un routeur rencontre des problèmes lors du traitement du contenu d’un en-tête de paquet, par exemple lorsqu’une option IPv4 non valide ou un type d’en-tête suivant non valide.

S’applique à