Bagikan melalui


IcmpV6Statistics.MessagesReceived Properti

Definisi

Mendapatkan jumlah pesan Protokol Pesan Kontrol Internet versi 6 (ICMPv6) yang diterima.

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

Nilai Properti

Nilai Int64 yang menentukan jumlah total pesan ICMPv6 yang diterima.

Atribut

Contoh

Contoh berikut menampilkan nilai properti ini.

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

End Sub

Keterangan

Pesan ICMPv6 dikirim untuk mengomunikasikan kesalahan dan informasi tentang paket yang dikirim menggunakan Protokol Internet versi 6 (IPv6).

Berlaku untuk