Sdílet prostřednictvím


IcmpV4Statistics.EchoRepliesSent Vlastnost

Definice

Získá počet odeslaných zpráv protokolu ICMPv4 (Internet Control Message Protocol verze 4).

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

Hodnota vlastnosti

Hodnota Int64 , která určuje celkový počet odeslaných zpráv odezvy ICMP.

Příklady

Následující příklad zobrazuje hodnotu této vlastnosti.

void ShowIcmpV4EchoData()
{
   IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
   IcmpV4Statistics ^ statistics = properties->GetIcmpV4Statistics();
   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 ShowIcmpV4EchoData()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV4Statistics statistics = properties.GetIcmpV4Statistics();
    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 ShowIcmpV4EchoData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim statistics As IcmpV4Statistics = properties.GetIcmpV4Statistics()
    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

Poznámky

Zprávy Žádosti o odezvu a Odpovědi umožňují počítači vyžádat si odpověď ICMP ze vzdáleného počítače v síti. Tato funkce se často používá k určení platnosti vzdálených adres.

Platí pro