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 function get ProtocolVersion () : Version 
public function set ProtocolVersion (value : Version)

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 a null reference (Nothing in Visual Basic).

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.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft