Compartilhar via


HttpClientHandler.Credentials Property

Gets or sets authentication information used by this handler.

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

Syntax

'Declaration
Public Property Credentials As ICredentials 
    Get 
    Set
'Usage
Dim instance As HttpClientHandler 
Dim value As ICredentials 

value = instance.Credentials

instance.Credentials = value
public ICredentials Credentials { get; set; }
public:
property ICredentials^ Credentials {
    ICredentials^ get ();
    void set (ICredentials^ value);
}
member Credentials : ICredentials with get, set
function get Credentials () : ICredentials 
function set Credentials (value : ICredentials)

Property Value

Type: System.Net.ICredentials

See Also

Reference

HttpClientHandler Class

System.Net.Http Namespace