Język

IPGlobalStatistics.ReceivedPacketsDelivered Właściwość

Definicja

Pobiera liczbę dostarczonych pakietów protokołu internetowego (IP).

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

Wartość właściwości

Wartość określająca Int64 łączną liczbę dostarczonych pakietów IP.

Atrybuty

Przykłady

Poniższy przykład kodu przedstawia statystyki dla odebranych pakietów IP.

public static void ShowInboundIPStatistics()
{
     IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
     IPGlobalStatistics ipstat = properties.GetIPv4GlobalStatistics();
     Console.WriteLine("  Inbound Packet Data:");
     Console.WriteLine("      Received ............................ : {0}",
     ipstat.ReceivedPackets);
     Console.WriteLine("      Forwarded ........................... : {0}",
     ipstat.ReceivedPacketsForwarded);
     Console.WriteLine("      Delivered ........................... : {0}",
     ipstat.ReceivedPacketsDelivered);
     Console.WriteLine("      Discarded ........................... : {0}",
     ipstat.ReceivedPacketsDiscarded);
}
Public Shared Sub ShowInboundIPStatistics() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim ipstat As IPGlobalStatistics = properties.GetIPv4GlobalStatistics()
    Console.WriteLine("  Inbound Packet Data:")
    Console.WriteLine("      Received ............................ : {0}", ipstat.ReceivedPackets)
    Console.WriteLine("      Forwarded ........................... : {0}", ipstat.ReceivedPacketsForwarded)
    Console.WriteLine("      Delivered ........................... : {0}", ipstat.ReceivedPacketsDelivered)
    Console.WriteLine("      Discarded ........................... : {0}", ipstat.ReceivedPacketsDiscarded)

End Sub

Uwagi

Wartość zwracana przez tę właściwość zawiera komunikaty protokołu ICMP (Internet Control Message Protocol).

Dotyczy