IPGlobalStatistics.OutputPacketsWithNoRoute Eigenschaft
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Ruft die Anzahl der IP-Pakete (Internet Protocol) ab, für die der lokale Computer keine Route zur Zieladresse ermitteln konnte.
public:
abstract property long OutputPacketsWithNoRoute { long get(); };
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
public abstract long OutputPacketsWithNoRoute { get; }
public abstract long OutputPacketsWithNoRoute { get; }
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
member this.OutputPacketsWithNoRoute : int64
member this.OutputPacketsWithNoRoute : int64
Public MustOverride ReadOnly Property OutputPacketsWithNoRoute As Long
Eigenschaftswert
Ein Int64 Wert, der die Anzahl der Pakete angibt, die nicht gesendet werden konnten, da eine Route nicht gefunden werden konnte.
- Attribute
Beispiele
Im folgenden Codebeispiel werden Statistiken für ausgehende IP-Pakete angezeigt.
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
Hinweise
IP-Pakete, die in diese Kategorie fallen, werden verworfen.