ServicePointManagerElement.Expect100Continue 屬性

定義

取得或設定布林值,用於判斷是否使用 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

適用於

另請參閱