Sdílet prostřednictvím


HttpClientHandler.PreAuthenticate Property

Gets or sets a value that indicates whether the handler sends an Authorization header with the request.

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

Syntax

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

value = instance.PreAuthenticate

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

Property Value

Type: System.Boolean

See Also

Reference

HttpClientHandler Class

System.Net.Http Namespace