Export (0) Print
Expand All

HttpWebRequest.Expect Property

Gets or sets the value of the Expect HTTP 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);

Property Value

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

Exceptions

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

Requirements

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

Show:
© 2014 Microsoft