IPGlobalStatistics.ReceivedPacketsForwarded 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 weitergeleiteten IP (Internet Protocol)-Pakete ab.
public:
abstract property long ReceivedPacketsForwarded { long get(); };
public abstract long ReceivedPacketsForwarded { get; }
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
public abstract long ReceivedPacketsForwarded { get; }
member this.ReceivedPacketsForwarded : int64
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
member this.ReceivedPacketsForwarded : int64
Public MustOverride ReadOnly Property ReceivedPacketsForwarded As Long
Eigenschaftswert
Ein Int64-Wert, der die Gesamtzahl der weitergeleiteten Pakete angibt.
- Attribute
Beispiele
Im folgenden Codebeispiel werden Statistiken für empfangene IP-Pakete angezeigt.
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 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
Hinweise
Wenn der lokale Computer kein Router ist, enthält der von dieser Eigenschaft zurückgegebene Wert Pakete, die erfolgreich über den lokalen Computer weitergeleitet wurden. Das Quellrouting ist eine IP-Option, bei der die Quelle des Pakets die Route zur Zieladresse angeben kann.