HttpContinueDelegate 代理人
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示方法,這個方法會在用戶端接收到持續回應時告知呼叫端。
public delegate void HttpContinueDelegate(int StatusCode, WebHeaderCollection ^ httpHeaders);
C#
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為 。
當用戶端想要顯示從伺服器接收的數據狀態時,這非常有用。
Get |
取得表示特定委派所代表之方法的物件。 |
產品 | 版本 |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |