Partager via


HttpClientHandler.MaxAutomaticRedirections Property

Gets or sets the maximum number of redirects that the handler follows.

Namespace:  System.Net.Http
Assembly:  System.Net.Http (in System.Net.Http.dll)

Syntax

'Declaration
Public Property MaxAutomaticRedirections As Integer 
    Get 
    Set
'Usage
Dim instance As HttpClientHandler 
Dim value As Integer 

value = instance.MaxAutomaticRedirections

instance.MaxAutomaticRedirections = value
public int MaxAutomaticRedirections { get; set; }
public:
property int MaxAutomaticRedirections {
    int get ();
    void set (int value);
}
member MaxAutomaticRedirections : int with get, set
function get MaxAutomaticRedirections () : int 
function set MaxAutomaticRedirections (value : int)

Property Value

Type: System.Int32

See Also

Reference

HttpClientHandler Class

System.Net.Http Namespace