IcmpV6Statistics.EchoRequestsSent 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 Permintaan Gema Protokol Pesan Kontrol Internet versi 6 (ICMPv6) yang dikirim.
public:
abstract property long EchoRequestsSent { long get(); };
public abstract long EchoRequestsSent { get; }
member this.EchoRequestsSent : int64
Public MustOverride ReadOnly Property EchoRequestsSent As Long
Nilai Properti
Int64 Nilai yang menentukan jumlah total jumlah pesan Permintaan ICMP Echo yang dikirim.
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.