HttpClientHandler.DefaultProxyCredentials Property

Definition

When the default (system) proxy is being used, gets or sets the credentials to submit to the default proxy server for authentication. The default proxy is used only when UseProxy is set to true and Proxy is set to null.

C#
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public System.Net.ICredentials? DefaultProxyCredentials { get; set; }
C#
public System.Net.ICredentials DefaultProxyCredentials { get; set; }

Property Value

The credentials needed to authenticate a request to the default proxy server.

Attributes

Applies to

Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.3, 1.4, 1.6, 2.0, 2.1