UseProxy Property

HttpClientHandler.UseProxy Property

.NET Framework 4.6 and 4.5

Gets or sets a value that indicates whether the handler uses a proxy for requests.

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

public bool UseProxy { get; set; }

Property Value

Type: System.Boolean

Returns Boolean.

true if the handler should use a proxy for requests; otherwise false. The default value is true.

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