Sdílet prostřednictvím


IcmpV4Statistics.TimestampRepliesSent Vlastnost

Definice

Získá počet IP Control Message Protocol verze 4 (ICMPv4) Časové razítko Odpovědět zprávy, které byly odeslány.

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

Hodnota vlastnosti

Hodnota Int64 , která určuje celkový počet odeslaných zpráv s časovým razítkem Odpovědět.

Příklady

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

void ShowTimestampData()
{
   IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
   IcmpV4Statistics ^ statistics = properties->GetIcmpV4Statistics();
   Console::WriteLine( "  Timestamp Requests .................. Sent: {0,-10}   Received: {1,-10}", 
      statistics->TimestampRequestsSent, 
      statistics->TimestampRequestsReceived );
   Console::WriteLine( "  Timestamp Replies ................... Sent: {0,-10}   Received: {1,-10}", 
      statistics->TimestampRepliesSent, 
      statistics->TimestampRepliesReceived );
}
public static void ShowTimestampData()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV4Statistics statistics = properties.GetIcmpV4Statistics();
    Console.WriteLine("  Timestamp Requests .................. Sent: {0,-10}   Received: {1,-10}",
        statistics.TimestampRequestsSent, statistics.TimestampRequestsReceived);
    Console.WriteLine("  Timestamp Replies ................... Sent: {0,-10}   Received: {1,-10}",
        statistics.TimestampRepliesSent, statistics.TimestampRepliesReceived);
}
Public Shared Sub ShowTimestampData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim statistics As IcmpV4Statistics = properties.GetIcmpV4Statistics()
    Console.WriteLine("  Timestamp Requests .................. Sent: {0,-10}   Received: {1,-10}", statistics.TimestampRequestsSent, statistics.TimestampRequestsReceived)
    Console.WriteLine("  Timestamp Replies ................... Sent: {0,-10}   Received: {1,-10}", statistics.TimestampRepliesSent, statistics.TimestampRepliesReceived)

End Sub

Poznámky

Zpráva Požadavku s časovým razítkem způsobí, že přijímající počítač odešle odpověď s časovým razítkem zpět do původního počítače. Tyto zprávy se používají k měření přenosové rychlosti v síti.

Platí pro