SocketsHttpHandler.Credentials Property

Definition

Gets or sets authentication information used by this handler.

C#
public System.Net.ICredentials? Credentials { get; set; }
C#
public System.Net.ICredentials Credentials { get; set; }

Property Value

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

Applies to

Product Versions
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10