SocketsHttpHandler.DefaultProxyCredentials Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

When the default (system) proxy is used, gets or sets the credentials used to submit to the default proxy server for authentication.

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

Property Value

The credentials used to authenticate the user to an authenticating proxy.

Exceptions

An operation has already been started on the current instance.

The current instance has been disposed.

Remarks

The default proxy is used only when UseProxy is set to true and Proxy is set to null.

Applies to

Produkt Verzie
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10