IcmpV6Statistics.NeighborSolicitsReceived 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得已收到的網際網路控制訊息通訊協定第 6 版 (ICMPv6)「近鄰請求」訊息數目。
public:
abstract property long NeighborSolicitsReceived { long get(); };
public abstract long NeighborSolicitsReceived { get; }
member this.NeighborSolicitsReceived : int64
Public MustOverride ReadOnly Property NeighborSolicitsReceived As Long
屬性值
Int64 值,指定已收到的「近鄰請求」訊息總數。
範例
下列範例會顯示這個屬性的值。
void ShowIcmpV6NeighborData()
{
IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
IcmpV6Statistics ^ statistics = properties->GetIcmpV6Statistics();
Console::WriteLine( " Advertisements ...................... Sent: {0,-10} Received: {1,-10}",
statistics->NeighborAdvertisementsSent, statistics->NeighborAdvertisementsReceived );
Console::WriteLine( " Solicits ............................ Sent: {0,-10} Received: {1,-10}",
statistics->NeighborSolicitsSent, statistics->NeighborSolicitsReceived );
}
public static void ShowIcmpV6NeighborData ()
{
IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
IcmpV6Statistics statistics = properties.GetIcmpV6Statistics();
Console.WriteLine (" Advertisements ...................... Sent: {0,-10} Received: {1,-10}",
statistics.NeighborAdvertisementsSent,statistics.NeighborAdvertisementsReceived);
Console.WriteLine (" Solicits ............................ Sent: {0,-10} Received: {1,-10}",
statistics.NeighborSolicitsSent, statistics.NeighborSolicitsReceived);
}
Public Shared Sub ShowIcmpV6NeighborData()
Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
Dim statistics As IcmpV6Statistics = properties.GetIcmpV6Statistics()
Console.WriteLine(" Advertisements ...................... Sent: {0,-10} Received: {1,-10}", statistics.NeighborAdvertisementsSent, statistics.NeighborAdvertisementsReceived)
Console.WriteLine(" Solicits ............................ Sent: {0,-10} Received: {1,-10}", statistics.NeighborSolicitsSent, statistics.NeighborSolicitsReceived)
End Sub
備註
「芳鄰探索」是一個程式,讓主計算機和路由器可以判斷已知位於共用連結上的鄰近位址。 此探索程式的一部分是使用稱為「芳鄰請求」和「芳鄰公告」的ICMP訊息來完成。 芳鄰請求訊息會傳送至探索鄰近的連結層位址,或確認芳鄰仍可透過快取的連結層位址連線。 包含地址資訊的芳鄰公告會傳送,以回應請求或宣告地址變更。