Bagikan melalui


IcmpV6Statistics.NeighborSolicitsSent Properti

Definisi

Mendapatkan jumlah pesan Permintaan Tetangga Protokol Pesan Kontrol Internet versi 6 (ICMPv6) yang dikirim.

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

Nilai Properti

Nilai Int64 yang menentukan jumlah total pesan Ajakan Tetangga yang dikirim.

Contoh

Contoh berikut menampilkan nilai properti ini.

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

Keterangan

Penemuan Tetangga adalah proses di mana komputer host dan router dapat menentukan alamat untuk tetangga yang diketahui berada di tautan bersama. Bagian dari proses penemuan ini dicapai menggunakan pesan ICMP yang disebut Ajakan Tetangga dan Iklan Tetangga. Pesan Permintaan Tetangga dikirim untuk menemukan alamat lapisan tautan tetangga atau untuk memverifikasi bahwa tetangga masih dapat dijangkau melalui alamat lapisan tautan yang di-cache. Iklan Tetangga yang berisi informasi alamat dikirim sebagai respons terhadap ajakan atau untuk mengumumkan perubahan alamat.

Berlaku untuk