IcmpV6Statistics.ParameterProblemsReceived 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得已收到的網際網路控制訊息通訊協定第 6 版 (ICMPv6)「參數問題」訊息數目。
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「參數問題」訊息總數。
範例
下列範例會顯示這個屬性的值。
void ShowIcmpV6ParameterData()
{
IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
IcmpV6Statistics ^ statistics = properties->GetIcmpV6Statistics();
Console::WriteLine( " Parameter Problems .................. Sent: {0,-10} Received: {1,-10}",
statistics->ParameterProblemsSent,
statistics->ParameterProblemsReceived );
}
public static void ShowIcmpV6ParameterData ()
{
IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
IcmpV6Statistics statistics = properties.GetIcmpV6Statistics();
Console.WriteLine (" Parameter Problems .................. Sent: {0,-10} Received: {1,-10}",
statistics.ParameterProblemsSent, statistics.ParameterProblemsReceived);
}
Public Shared Sub ShowIcmpV6ParameterData()
Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
Dim statistics As IcmpV6Statistics = properties.GetIcmpV6Statistics()
Console.WriteLine(" Parameter Problems .................. Sent: {0,-10} Received: {1,-10}", statistics.ParameterProblemsSent, statistics.ParameterProblemsReceived)
End Sub
備註
當主計算機或路由器在處理封包標頭的內容時發生問題時,就會傳送參數問題訊息,例如遇到無效的 IPv6 選項或無效的 Next 標頭類型。