IcmpV4Statistics.RedirectsReceived Property

Definition

Gets the number of Internet Control Message Protocol version 4 (ICMPv4) Redirect messages that were received.

C#
public abstract long RedirectsReceived { get; }

Property Value

An Int64 value that specifies the total number of ICMP Redirect messages that were received.

Examples

The following example displays the value of this property.

C#
public static void ShowRedirectsData()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV4Statistics statistics = properties.GetIcmpV4Statistics();
    Console.WriteLine("  Redirects ........................... Sent: {0,-10}   Received: {1,-10}",
        statistics.RedirectsSent, statistics.RedirectsReceived);
}

Remarks

Redirect messages are sent by routers to inform a host computer of a better route for a destination address.

Applies to

Toode Versioonid
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1