Bagikan melalui


IcmpV6Statistics.NeighborAdvertisementsSent Properti

Definisi

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

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

Nilai Properti

Nilai Int64 yang menentukan jumlah total pesan Iklan 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 Permintaan 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