Share via


HttpClientHandler.MaxAutomaticRedirections Vlastnost

Definice

Získá nebo nastaví maximální počet přesměrování, které obslužná rutina sleduje.

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

Hodnota vlastnosti

Maximální počet odpovědí přesměrování, které obslužná rutina sleduje. Výchozí hodnota je 50.

Atributy

Poznámky

Vlastnost MaxAutomaticRedirections nastavuje maximální počet přesměrování pro požadavek, který se má provést, pokud AllowAutoRedirect je truevlastnost .

Platí pro