Freigeben über


HttpClientHandler.AllowAutoRedirect Property

Gets or sets a value that indicates whether the handler should follow redirection responses.

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

Syntax

'Declaration
Public Property AllowAutoRedirect As Boolean 
    Get 
    Set
'Usage
Dim instance As HttpClientHandler 
Dim value As Boolean 

value = instance.AllowAutoRedirect

instance.AllowAutoRedirect = value
public bool AllowAutoRedirect { get; set; }
public:
property bool AllowAutoRedirect {
    bool get ();
    void set (bool value);
}
member AllowAutoRedirect : bool with get, set
function get AllowAutoRedirect () : boolean 
function set AllowAutoRedirect (value : boolean)

Property Value

Type: System.Boolean

See Also

Reference

HttpClientHandler Class

System.Net.Http Namespace