SocketsHttpHandler.MaxAutomaticRedirections Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets or sets the maximum number of allowed HTTP redirects.

C#
public int MaxAutomaticRedirections { get; set; }

Property Value

The maximum number of allowed HTTP redirects.

Exceptions

The value specified is less than or equal to zero.

An operation has already been started on the current instance.

The current instance has been disposed.

Applies to

Produkt Versioner
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10