Język

IcmpV4Statistics.MessagesSent Właściwość

Definicja

Pobiera liczbę wysłanych komunikatów protokołu ICMPv4 (Internet Control Message Protocol w wersji 4).

public:
 abstract property long MessagesSent { long get(); };
[System.Runtime.Versioning.UnsupportedOSPlatform("freebsd")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("osx")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public abstract long MessagesSent { get; }
public abstract long MessagesSent { get; }
[<System.Runtime.Versioning.UnsupportedOSPlatform("freebsd")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("osx")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
member this.MessagesSent : int64
member this.MessagesSent : int64
Public MustOverride ReadOnly Property MessagesSent As Long

Wartość właściwości

Wartość określająca Int64 łączną liczbę wysłanych komunikatów ICMPv4.

Atrybuty

Przykłady

W poniższym przykładzie wyświetlana jest wartość tej właściwości.

public static void ShowIcmpV4MessageData()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV4Statistics statistics = properties.GetIcmpV4Statistics();
    Console.WriteLine("  Messages ............................ Sent: {0,-10}   Received: {1,-10}",
        statistics.MessagesSent, statistics.MessagesReceived);
}
Public Shared Sub ShowIcmpV4MessageData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim statistics As IcmpV4Statistics = properties.GetIcmpV4Statistics()
    Console.WriteLine("  Messages ............................ Sent: {0,-10}   Received: {1,-10}", statistics.MessagesSent, statistics.MessagesReceived)

End Sub

Uwagi

Komunikaty ICMPV4 są wysyłane w celu komunikowania błędów i informacji o pakietach, które zostały wysłane przy użyciu protokołu internetowego w wersji 4 (IPv4).

Dotyczy