Editar

Partilhar via


SocketsHttpHandler.MaxAutomaticRedirections Property

Definition

Gets or sets the maximum number of allowed HTTP redirects.

public:
 property int MaxAutomaticRedirections { int get(); void set(int value); };
public int MaxAutomaticRedirections { get; set; }
member this.MaxAutomaticRedirections : int with get, set
Public Property MaxAutomaticRedirections As Integer

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