HttpClientHandler.MaxAutomaticRedirections Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the maximum number of redirects that the handler follows.

Namespace:   System.Net.Http
Assembly:  System.Net.Http (in System.Net.Http.dll)

member MaxAutomaticRedirections : int with get, set

Property Value

Type: System.Int32

The maximum number of redirection responses that the handler follows. The default value is 50.

The MaxAutomaticRedirections property sets the maximum number of redirections for the request to follow if the AllowAutoRedirect property is true.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show: