HttpWebRequest.Expect 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 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,屬性值就會遺失。