Windows apps
Collapse the table of content
Expand the table of content

HttpClientHandlerExtensions::SupportsProtocolVersion Method

Determines whether the HTTP client handler supports protocol version with the request.

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

[ExtensionAttribute]
public:
static bool SupportsProtocolVersion(
	HttpClientHandler^ handler
)

Parameters

handler
Type: System.Net.Http::HttpClientHandler

Return Value

Type: System::Boolean
true if the handler supports protocol version with 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 https://msdn.microsoft.com/en-us/library/windows/apps/bb384936.aspx or https://msdn.microsoft.com/en-us/library/windows/apps/bb383977.aspx.
Show:
© 2017 Microsoft