IcmpV4Statistics.MessagesReceived Proprietà

Definizione

Ottiene il numero di messaggi di Internet Control Message Protocol ricevuti.

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

Valore della proprietà

Valore Int64 che specifica il numero totale di messaggi ICMPv4 ricevuti.

Attributi

Esempio

Nell'esempio seguente viene visualizzato il valore di questa proprietà.

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

Commenti

I messaggi ICMPv4 vengono inviati per comunicare errori e informazioni sui pacchetti inviati tramite il protocollo Internet versione 4 (IPv4).

Si applica a