SocketsHttpHandler.Proxy Property

Definition

Gets or sets the custom proxy when the UseProxy property is true.

C#
public System.Net.IWebProxy? Proxy { get; set; }
C#
public System.Net.IWebProxy Proxy { get; set; }

Property Value

The custom proxy.

Exceptions

An operation has already been started on the current instance.

The current instance has been disposed.

Applies to

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