HttpContinueDelegate 代理人

定義

表示方法,這個方法會在用戶端接收到持續回應時告知呼叫端。

public delegate void HttpContinueDelegate(int StatusCode, WebHeaderCollection ^ httpHeaders);
public delegate void HttpContinueDelegate(int StatusCode, WebHeaderCollection httpHeaders);
type HttpContinueDelegate = delegate of int * WebHeaderCollection -> unit
Public Delegate Sub HttpContinueDelegate(StatusCode As Integer, httpHeaders As WebHeaderCollection)

參數

StatusCode
Int32

來自伺服器的 HTTP 狀態數值。

httpHeaders
WebHeaderCollection

以來自伺服器的 100-Continue 回應所傳回的標頭。

備註

用來 HttpContinueDelegate 指定從伺服器收到 HTTP 100 繼續回應時要呼叫的回呼方法。 設定時,每當收到類型的 HttpStatusCode.Continue 第一個通訊協定回應時,就會呼叫委派。 這是從 1.1 版架構的行為變更。

事件處理常式必須宣告與 相同的參數 HttpContinueDelegate

注意

StatusCode 一律 HttpStatusCode.Continue 為 。

當用戶端想要顯示從伺服器接收的資料狀態時,這非常有用。

擴充方法

GetMethodInfo(Delegate)

取得表示特定委派所代表之方法的物件。

適用於