共用方式為


IcmpV4Statistics.ParameterProblemsSent 屬性

定義

取得已傳送的網際網路控制訊息通訊協定第 4 版 (ICMPv4)「參數問題」訊息數目。

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「參數問題」訊息總數。

範例

下列範例會顯示這個屬性的值。

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 選項或無效的 Next 標頭類型。

適用於