Udostępnij za pośrednictwem


HttpClientHandler.UseDefaultCredentials Property

Gets or sets a value that controls whether default credentials are sent with requests by the handler.

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

Syntax

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

value = instance.UseDefaultCredentials

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

Property Value

Type: System.Boolean

See Also

Reference

HttpClientHandler Class

System.Net.Http Namespace