MaxAutomaticRedirections Property

HttpClientHandler.MaxAutomaticRedirections Property

.NET Framework (current version)
 

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

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:
© 2016 Microsoft