Gets or sets the value of the Expect header.
[Visual Basic] Public Property Expect As String [C#] public string Expect {get; set;} [C++] public: __property String* get_Expect(); public: __property void set_Expect(String*); [JScript] public function get Expect() : String; public function set Expect(String);
Exception Type | Condition |
---|---|
ArgumentException | Expect is set to "100-continue". |
By default, Expect contains "100-continue". You can add other values to the list Expect maintains, or you can delete all values except "100-continue" from the list by setting Expect to null.
HttpWebRequest Class | HttpWebRequest Members | System.Net Namespace