共用方式為


HttpMessageHandlerFactory.OnCreate(HttpMessageHandler) 方法

定義

建立新 HTTP 訊息時引發事件。

protected:
 virtual System::Net::Http::HttpMessageHandler ^ OnCreate(System::Net::Http::HttpMessageHandler ^ innerChannel);
protected virtual System.Net.Http.HttpMessageHandler OnCreate (System.Net.Http.HttpMessageHandler innerChannel);
abstract member OnCreate : System.Net.Http.HttpMessageHandler -> System.Net.Http.HttpMessageHandler
override this.OnCreate : System.Net.Http.HttpMessageHandler -> System.Net.Http.HttpMessageHandler
Protected Overridable Function OnCreate (innerChannel As HttpMessageHandler) As HttpMessageHandler

參數

innerChannel
HttpMessageHandler

內部通道。

傳回

建立的 HTTP 訊息處理常式。

適用於