DelegatingHandler 构造函数

定义

创建 DelegatingHandler 类的新实例。Creates a new instance of the DelegatingHandler class.

重载

DelegatingHandler()

创建 DelegatingHandler 类的新实例。Creates a new instance of the DelegatingHandler class.

DelegatingHandler(HttpMessageHandler)

创建特定内部处理程序的 DelegatingHandler 类的新实例。Creates a new instance of the DelegatingHandler class with a specific inner handler.

DelegatingHandler()

创建 DelegatingHandler 类的新实例。Creates a new instance of the DelegatingHandler class.

protected:
 DelegatingHandler();
protected DelegatingHandler ();
Protected Sub New ()

注解

可以使用 InnerHandler设置内部句柄。The inner handle can be set using the InnerHandler.

DelegatingHandler(HttpMessageHandler)

创建特定内部处理程序的 DelegatingHandler 类的新实例。Creates a new instance of the DelegatingHandler class with a specific inner handler.

protected:
 DelegatingHandler(System::Net::Http::HttpMessageHandler ^ innerHandler);
protected DelegatingHandler (System.Net.Http.HttpMessageHandler innerHandler);
new System.Net.Http.DelegatingHandler : System.Net.Http.HttpMessageHandler -> System.Net.Http.DelegatingHandler
Protected Sub New (innerHandler As HttpMessageHandler)

参数

innerHandler
HttpMessageHandler

负责处理 HTTP 响应消息的内部处理程序。The inner handler which is responsible for processing the HTTP response messages.

适用于