IPGlobalStatistics.OutputPacketsDiscarded Özellik

Tanım

Atılan iletilen İnternet Protokolü (IP) paketlerinin sayısını alır.

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

Özellik Değeri

Int64 Atılan toplam giden paket sayısını belirten değer.

Öznitelikler

Örnekler

Aşağıdaki kod örneği, giden IP paketlerine ilişkin istatistikleri görüntüler.


public static void ShowOutboundIPStatistics()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IPGlobalStatistics ipstat = properties.GetIPv4GlobalStatistics();
    Console.WriteLine("  Outbound Packet Data:");
    Console.WriteLine("      Requested ........................... : {0}",
        ipstat.OutputPacketRequests);
    Console.WriteLine("      Discarded ........................... : {0}",
        ipstat.OutputPacketsDiscarded);
    Console.WriteLine("      No Routing Discards ................. : {0}",
        ipstat.OutputPacketsWithNoRoute);
    Console.WriteLine("      Routing Entry Discards .............. : {0}",
        ipstat.OutputPacketRoutingDiscards);
}
Public Shared Sub ShowOutboundIPStatistics() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim ipstat As IPGlobalStatistics = properties.GetIPv4GlobalStatistics()
    Console.WriteLine("  Outbound Packet Data:")
    Console.WriteLine("      Requested ........................... : {0}", ipstat.OutputPacketRequests)
    Console.WriteLine("      Discarded ........................... : {0}", ipstat.OutputPacketsDiscarded)
    Console.WriteLine("      No Routing Discards ................. : {0}", ipstat.OutputPacketsWithNoRoute)
    Console.WriteLine("      Routing Entry Discards .............. : {0}", ipstat.OutputPacketRoutingDiscards)

End Sub

Açıklamalar

Bu özellik tarafından döndürülen veriler, paketleri teslim edilemeyen hale getiren hatalar nedeniyle atılan paketleri içermez. Bu verilere dahil edilen paketler genellikle yetersiz arabellek alanı gibi ağ sorunları nedeniyle atılır.

Şunlara uygulanır