Credentials Property

HttpClientHandler.Credentials Property

.NET Framework 4.6 and 4.5

Gets or sets authentication information used by this handler.

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

public ICredentials Credentials { get; set; }

Property Value

Type: System.Net.ICredentials

Returns ICredentials.

The authentication credentials associated with the handler. The default is null.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
© 2015 Microsoft