IPGlobalStatistics.ReceivedPacketsDelivered Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient le nombre de paquets IP remis.
public:
abstract property long ReceivedPacketsDelivered { long get(); };
public abstract long ReceivedPacketsDelivered { get; }
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
public abstract long ReceivedPacketsDelivered { get; }
member this.ReceivedPacketsDelivered : int64
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
member this.ReceivedPacketsDelivered : int64
Public MustOverride ReadOnly Property ReceivedPacketsDelivered As Long
Valeur de propriété
Valeur Int64 qui spécifie le nombre total de paquets IP remis.
- Attributs
Exemples
L’exemple de code suivant affiche des statistiques pour les paquets IP reçus.
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
Remarques
La valeur retournée par cette propriété inclut les messages ICMP (Internet Control Message Protocol).
S’applique à
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.