Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HttpClientHandler.MaxAutomaticRedirections Property

.NET Framework 4.6 and 4.5

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)

public int MaxAutomaticRedirections { get; set; }

Property Value

Type: System.Int32
Returns 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.

.NET Framework

Supported in: 4.6, 4.5

.NET for Windows Phone apps

Supported in: Windows Phone 8.1
© 2015 Microsoft