This documentation is archived and is not being maintained.

HttpWebRequest.Expect Property

Gets or sets the value of the Expect HTTP header.

[Visual Basic]
Public Property Expect As String
public string Expect {get; set;}
public: __property String* get_Expect();
public: __property void set_Expect(String*);
public function get Expect() : String;
public function set Expect(String);

Property Value

The contents of the Expect HTTP header. The default value is a null reference (Nothing in Visual Basic).


Exception Type Condition
ArgumentException Expect is set to a string that contains "100-continue" as a substring.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

HttpWebRequest Class | HttpWebRequest Members | System.Net Namespace