IPGlobalStatistics.OutputPacketRequests Eigenschap

Definitie

Hiermee haalt u het aantal uitgaande IP-pakketten (Internet Protocol) op.

public:
 abstract property long OutputPacketRequests { long get(); };
public abstract long OutputPacketRequests { get; }
member this.OutputPacketRequests : int64
Public MustOverride ReadOnly Property OutputPacketRequests As Long

Waarde van eigenschap

Een Int64 waarde die het totale aantal uitgaande pakketten aangeeft.

Voorbeelden

In het volgende codevoorbeeld worden statistieken weergegeven voor uitgaande IP-pakketten.


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

Opmerkingen

Het aantal uitgaande pakketten bevat niet het aantal pakketten dat is doorgestuurd.

Van toepassing op