HttpWebRequest.ProtocolVersion Property
Gets or sets the HTTP protocol version for this request.
Namespace: System.Net
Assembly: System (in system.dll)
Syntax
public Version ProtocolVersion { get; set; }
Property Value
The HTTP version to use for the request. Valid values: HttpVersion.Version10, HttpVersion.Version11. The default is HttpVersion.Version11.
Exceptions
Exception type | Condition |
---|---|
ArgumentException | An invalid value was specified. |
Version Information
Available in the .NET Micro Framework versions 4.0 and 4.1.
See Also
Reference
HttpWebRequest Class
HttpWebRequest Members
System.Net Namespace