HttpClientHandlerExtensions.SupportsPreAuthenticate Method

Determines whether the HTTP client handler supports sending an authorization header with the request.

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

public static bool SupportsPreAuthenticate(
	this HttpClientHandler handler
)

Parameters

handler
Type: System.Net.Http.HttpClientHandler

Return Value

Type: System.Boolean
true if the HTTP client handler supports sending an authorization header 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 http://msdn.microsoft.com/en-us/library/vstudio/bb384936 or http://msdn.microsoft.com/en-us/library/vstudio/bb383977.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft