HttpWebRequest.Expect Property
Gets or sets the value of the Expect HTTP header.
Namespace: System.Net
Assembly: System (in system.dll)
Syntax
public string Expect { get; set; }
Property Value
The contents of the Expect HTTP header. The default value is null.
Remarks
When setting this property, null clears the Expect (except for the 100-continue value).
Exceptions
Exception type | Condition |
---|---|
ArgumentException | 100-continue isn't set. |
Version Information
Available in the .NET Micro Framework versions 4.0 and 4.1.
See Also
Reference
HttpWebRequest Class
HttpWebRequest Members
System.Net Namespace