NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

HttpWebRequest.Version

Gets and sets the HTTP protocol version used in this request.

[Visual Basic]
Public Property Version As ProtocolVersion
[C#]
public ProtocolVersion Version {get; set;}
[C++]
public: __property ProtocolVersion* get_Version();
public: __property void set_Version(ProtocolVersion*);
[JScript]
public function get Version() : ProtocolVersion;
public function set Version(ProtocolVersion);

Exceptions

Exception Type Condition
ArgumentException The HTTP protocol version is set to a value other than 1.0 or 1.1.

Remarks

HttpWebRequest supports only versions 1.0 and 1.1 of the HTTP protocol. Setting Version to a different version will throw an exception.

See Also

HttpWebRequest Class | HttpWebRequest Members | System.Net Namespace