HttpClientHandler.MaxAutomaticRedirections Propriedade

Definição

Obtém ou define o número máximo de redirecionamentos que o manipulador segue.Gets or sets the maximum number of redirects that the handler follows.

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

Valor da propriedade

Int32

O número máximo de respostas de redirecionamento que o manipulador segue.The maximum number of redirection responses that the handler follows. O valor padrão é 50.The default value is 50.

Atributos

Comentários

A MaxAutomaticRedirections propriedade define o número máximo de redirecionamentos para a solicitação seguir se a AllowAutoRedirect propriedade for true .The MaxAutomaticRedirections property sets the maximum number of redirections for the request to follow if the AllowAutoRedirect property is true.

Aplica-se a