MaximumAutomaticRedirections Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

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

public int MaximumAutomaticRedirections { get; }

Property Value

Type: System..::..Int32
The maximum number of redirection responses that the request follows. The default value is 50.

ExceptionCondition
ArgumentException

The value is set to 0 or less.

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

Show: