HttpListenerResponse::ProtocolVersion Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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.

Exception Condition
ArgumentNullException

The value specified for a set operation is null.

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
Available since 2.0
Return to top
Show: