Export (0) Print
Expand All

HttpClientHandler::MaxAutomaticRedirections Property

.NET Framework 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)

property int MaxAutomaticRedirections {
	int get ();
	void set (int value);

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

Supported in: Windows Phone 8.1
© 2015 Microsoft