ServicePointManagerElement.Expect100Continue 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定布林值,用於判斷是否使用 100-Continue 行為。
public:
property bool Expect100Continue { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("expect100Continue", DefaultValue=true)]
public bool Expect100Continue { get; set; }
[<System.Configuration.ConfigurationProperty("expect100Continue", DefaultValue=true)>]
member this.Expect100Continue : bool with get, set
Public Property Expect100Continue As Boolean
屬性值
預期 true
要求有 100-Continue 的回應,則為 POST
,否則為 false
。 預設值是 true
。
- 屬性
備註
當此屬性設定為 true
時,使用 方法的 POST
用戶端要求會預期從伺服器接收 100-Continue 回應,以指出客戶端應該傳送要張貼的數據。 此機制可讓用戶端避免在伺服器根據要求標頭而想要拒絕要求時,透過網路傳送大量數據。
如需詳細資訊,請參閱 ServicePointManager.Expect100Continue。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應