HttpClientHandler.MaxAutomaticRedirections Egenskap

Definition

Hämtar eller anger det maximala antalet omdirigeringar som hanteraren följer.

public:
 property int MaxAutomaticRedirections { int get(); void set(int value); };
public int MaxAutomaticRedirections { get; set; }
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public int MaxAutomaticRedirections { get; set; }
member this.MaxAutomaticRedirections : int with get, set
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.MaxAutomaticRedirections : int with get, set
Public Property MaxAutomaticRedirections As Integer

Egenskapsvärde

Det maximala antalet omdirigeringssvar som hanteraren följer. Standardvärdet är 50.

Attribut

Kommentarer

Egenskapen MaxAutomaticRedirections anger det maximala antalet omdirigeringar för begäran som ska följas om egenskapen AllowAutoRedirect är true.

Gäller för