語言

HttpWebRequest.Expect 屬性

定義

取得或設定 HTTP 標頭的 Expect 值。

public:
 property System::String ^ Expect { System::String ^ get(); void set(System::String ^ value); };
public string? Expect { get; set; }
public string Expect { get; set; }
member this.Expect : string with get, set
Public Property Expect As String

屬性值

HTTP 標頭的內容 Expect 。 預設值為 null。

例外狀況

Expect 設定為包含「100-continue」作為子字串的字串。

備註

此屬性的值儲存在 WebHeaderCollection。 如果已設定 WebHeaderCollection,屬性值就會遺失。

適用於

另請參閱