IcmpV6Statistics.EchoRepliesReceived Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendapatkan jumlah pesan Balasan Gema Protokol Pesan Kontrol Internet versi 6 (ICMPv6) yang diterima.
public:
abstract property long EchoRepliesReceived { long get(); };
public abstract long EchoRepliesReceived { get; }
member this.EchoRepliesReceived : int64
Public MustOverride ReadOnly Property EchoRepliesReceived As Long
Nilai Properti
Nilai Int64 yang menentukan jumlah total jumlah pesan Balasan ICMP Echo yang diterima.
Contoh
Contoh berikut menampilkan nilai properti ini.
void ShowIcmpV6EchoData()
{
IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
IcmpV6Statistics ^ statistics = properties->GetIcmpV6Statistics();
Console::WriteLine( " Echo Requests ....................... Sent: {0,-10} Received: {1,-10}",
statistics->EchoRequestsSent, statistics->EchoRequestsReceived );
Console::WriteLine( " Echo Replies ........................ Sent: {0,-10} Received: {1,-10}",
statistics->EchoRepliesSent, statistics->EchoRepliesReceived );
}
public static void ShowIcmpV6EchoData ()
{
IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
IcmpV6Statistics statistics = properties.GetIcmpV6Statistics();
Console.WriteLine (" Echo Requests ....................... Sent: {0,-10} Received: {1,-10}",
statistics.EchoRequestsSent, statistics.EchoRequestsReceived);
Console.WriteLine (" Echo Replies ........................ Sent: {0,-10} Received: {1,-10}",
statistics.EchoRepliesSent, statistics.EchoRepliesReceived);
}
Public Shared Sub ShowIcmpV6EchoData()
Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
Dim statistics As IcmpV6Statistics = properties.GetIcmpV6Statistics()
Console.WriteLine(" Echo Requests ....................... Sent: {0,-10} Received: {1,-10}", statistics.EchoRequestsSent, statistics.EchoRequestsReceived)
Console.WriteLine(" Echo Replies ........................ Sent: {0,-10} Received: {1,-10}", statistics.EchoRepliesSent, statistics.EchoRepliesReceived)
End Sub
Keterangan
Pesan Permintaan Echo dan Balasan Gema memungkinkan komputer meminta respons ICMP dari komputer jarak jauh di jaringan. Fungsionalitas ini sering digunakan untuk menentukan validitas alamat jarak jauh.