語言

SocketsHttpHandler.Expect100ContinueTimeout 屬性

定義

取得或設定伺服器 HTTP 100 繼續回應的逾時值。

public:
 property TimeSpan Expect100ContinueTimeout { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan Expect100ContinueTimeout { get; set; }
member this.Expect100ContinueTimeout : TimeSpan with get, set
Public Property Expect100ContinueTimeout As TimeSpan

屬性值

等待 HTTP 100 的時間跨度 繼續。 預設值為 1 秒。

例外狀況

指定的逾時時間小於或等於零,且不為 InfiniteTimeSpan

-或-

指定的逾時時間大於 MaxValue 毫秒。

目前的實例已經開始了操作。

目前的實例已被處理。

備註

當請求包含 Expect: 100-continue 標頭時,伺服器應該在客戶端傳送主體前回應 HTTP 狀態 100 Continue 。 SocketsHttpHandler.Expect100ContinueTimeout 定義伺服器回應的 100 Continue 逾時時間。

適用於