Export (0) Print
Expand All

HttpMessageInvoker Constructor (HttpMessageHandler, Boolean)

.NET Framework 4.5

Initializes an instance of a HttpMessageInvoker class with a specific HttpMessageHandler.

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

public HttpMessageInvoker(
	HttpMessageHandler handler,
	bool disposeHandler
)

Parameters

handler
Type: System.Net.Http.HttpMessageHandler

The HttpMessageHandler responsible for processing the HTTP response messages.

disposeHandler
Type: System.Boolean

true if the inner handler should be disposed of by Dispose(),false if you intend to reuse the inner handler.

.NET Framework

Supported in: 4.6, 4.5

Supported in: Windows Phone 8.1
Show:
© 2015 Microsoft