共用方式為


IHttpClientLogger.LogRequestStart(HttpRequestMessage) 方法

定義

傳送 HTTP 要求之前記錄。

public:
 System::Object ^ LogRequestStart(System::Net::Http::HttpRequestMessage ^ request);
public object? LogRequestStart (System.Net.Http.HttpRequestMessage request);
abstract member LogRequestStart : System.Net.Http.HttpRequestMessage -> obj
Public Function LogRequestStart (request As HttpRequestMessage) As Object

參數

request
HttpRequestMessage

將傳送的 HTTP 要求訊息。

傳回

將傳遞至對應 LogRequestStop(Object, HttpRequestMessage, HttpResponseMessage, TimeSpan)LogRequestFailed(Object, HttpRequestMessage, HttpResponseMessage, Exception, TimeSpan)的內容物件。 如果實作不需要任何內容物件,則可以是 null

適用於