แก้ไข

แชร์ผ่าน


HttpMessageInvoker Constructors

Definition

Initializes an instance of a HttpMessageInvoker class.

Overloads

HttpMessageInvoker(HttpMessageHandler)

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

HttpMessageInvoker(HttpMessageHandler, Boolean)

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

HttpMessageInvoker(HttpMessageHandler)

Source:
HttpMessageInvoker.cs
Source:
HttpMessageInvoker.cs
Source:
HttpMessageInvoker.cs

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

public:
 HttpMessageInvoker(System::Net::Http::HttpMessageHandler ^ handler);
public HttpMessageInvoker (System.Net.Http.HttpMessageHandler handler);
new System.Net.Http.HttpMessageInvoker : System.Net.Http.HttpMessageHandler -> System.Net.Http.HttpMessageInvoker
Public Sub New (handler As HttpMessageHandler)

Parameters

handler
HttpMessageHandler

The HttpMessageHandler responsible for processing the HTTP response messages.

Applies to

HttpMessageInvoker(HttpMessageHandler, Boolean)

Source:
HttpMessageInvoker.cs
Source:
HttpMessageInvoker.cs
Source:
HttpMessageInvoker.cs

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

public:
 HttpMessageInvoker(System::Net::Http::HttpMessageHandler ^ handler, bool disposeHandler);
public HttpMessageInvoker (System.Net.Http.HttpMessageHandler handler, bool disposeHandler);
new System.Net.Http.HttpMessageInvoker : System.Net.Http.HttpMessageHandler * bool -> System.Net.Http.HttpMessageInvoker
Public Sub New (handler As HttpMessageHandler, disposeHandler As Boolean)

Parameters

handler
HttpMessageHandler

The HttpMessageHandler responsible for processing the HTTP response messages.

disposeHandler
Boolean

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

Applies to