Sdílet prostřednictvím


HttpClientHandler.MaxAutomaticRedirections Vlastnost

Definice

Získá nebo nastaví maximální počet přesměrování, které obslužná rutina ná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 následuje. Výchozí hodnota je 50.

Atributy

Poznámky

Vlastnost MaxAutomaticRedirections nastaví maximální počet přesměrování pro požadavek sledovat, pokud AllowAutoRedirect je truevlastnost .

Platí pro