Export (0) Print
Expand All

HttpListenerResponse::ProtocolVersion Property

Gets or sets the HTTP version used for the response.

Namespace:  System.Net
Assembly:  System (in System.dll)

public:
property Version^ ProtocolVersion {
	Version^ get ();
	void set (Version^ value);
}

Property Value

Type: System::Version
A Version object indicating the version of HTTP used when responding to the client. Note that this property is now obsolete.

ExceptionCondition
ArgumentNullException

The value specified for a set operation is nullptr.

ArgumentException

The value specified for a set operation does not have its Major property set to 1 or does not have its Minor property set to either 0 or 1.

ObjectDisposedException

This object is closed.

The capabilities of different HTTP versions are specified in the documents available at http://www.ietf.org.

The following code example demonstrates setting the value of this property.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft