HttpClientHandlerExtensions.SupportsUseProxy Method

Determines whether the HTTP client handler supports using a proxy for the request.

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


<ExtensionAttribute> _
Public Shared Function SupportsUseProxy ( _
    handler As HttpClientHandler _
) As Boolean
Dim handler As HttpClientHandler 
Dim returnValue As Boolean 

returnValue = handler.SupportsUseProxy()
public static bool SupportsUseProxy(
    this HttpClientHandler handler
static bool SupportsUseProxy(
    HttpClientHandler^ handler
static member SupportsUseProxy : 
        handler:HttpClientHandler -> bool
public static function SupportsUseProxy(
    handler : HttpClientHandler
) : boolean


Return Value

Type: System.Boolean
true if the handler supports using a proxy for the request; otherwise, false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HttpClientHandler. When you use instance method syntax to call this method, omit the first parameter. For more information, see or

See Also


HttpClientHandlerExtensions Class

System.Net.Http Namespace