HttpWebRequest.Expect 屬性

定義

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

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

屬性值

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

例外狀況

Expect 設定為包含 "100-continue" 做為子字串的字串。

備註

這個屬性的值儲存在 WebHeaderCollection 中。 如果有設定 WebHeaderCollection,將會遺失屬性值。

適用於

另請參閱