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

HttpMessageInvoker Constructor (HttpMessageHandler, Boolean)

Initializes a new instance of the HttpMessageInvoker class with the specified message handler and value that indicates whether this instance is responsible for disposing the handler.

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 handler responsible for processing the HTTP response messages.
disposeHandler
Type: System::Boolean
true if the inner handler should be disposed of by the Dispose method, or false if you intend to reuse the inner handler.
Show:
© 2017 Microsoft