IcmpV6Statistics.RedirectsReceived Propriété

Définition

Obtient le nombre de messages de redirection ICMPv6 reçus.

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

Valeur de propriété

Valeur Int64 qui spécifie le nombre total de messages de redirection ICMP reçus.

Exemples

L’exemple suivant affiche la valeur de cette propriété.

void ShowIcmpV6RedirectsData()
{
   IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
   IcmpV6Statistics ^ statistics = properties->GetIcmpV6Statistics();
   Console::WriteLine( "  Redirects ........................... Sent: {0,-10}   Received: {1,-10}", 
      statistics->RedirectsSent, 
      statistics->RedirectsReceived );
}
public static void ShowIcmpV6RedirectsData ()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV6Statistics statistics = properties.GetIcmpV6Statistics();
    Console.WriteLine ("  Redirects ........................... Sent: {0,-10}   Received: {1,-10}",
        statistics.RedirectsSent, statistics.RedirectsReceived);
}
Public Shared Sub ShowIcmpV6RedirectsData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim statistics As IcmpV6Statistics = properties.GetIcmpV6Statistics()
    Console.WriteLine("  Redirects ........................... Sent: {0,-10}   Received: {1,-10}", statistics.RedirectsSent, statistics.RedirectsReceived)

End Sub

Remarques

Les messages de redirection sont envoyés par les routeurs pour informer un ordinateur hôte d’un meilleur itinéraire pour une adresse de destination.

S’applique à