HttpListenerResponse.ProtocolVersion Property


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

Gets or sets the HTTP version used for the response.

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

member ProtocolVersion : Version with get, set

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

The value specified for a set operation is null.


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.


This object is closed.

The capabilities of different HTTP versions are specified in the documents available at

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