HttpMessageHandlerFactoryExtensions.CreateHandler 方法

定义

使用默认配置创建新的 HttpMessageHandler

public:
[System::Runtime::CompilerServices::Extension]
 static System::Net::Http::HttpMessageHandler ^ CreateHandler(System::Net::Http::IHttpMessageHandlerFactory ^ factory);
public static System.Net.Http.HttpMessageHandler CreateHandler (this System.Net.Http.IHttpMessageHandlerFactory factory);
static member CreateHandler : System.Net.Http.IHttpMessageHandlerFactory -> System.Net.Http.HttpMessageHandler
<Extension()>
Public Function CreateHandler (factory As IHttpMessageHandlerFactory) As HttpMessageHandler

参数

返回

使用默认配置配置的 HttpMessageHandler

适用于