HttpRequestMessage.Version HttpRequestMessage.Version HttpRequestMessage.Version HttpRequestMessage.Version Property

Definition

Gets or sets the HTTP message version.

public:
 property Version ^ Version { Version ^ get(); void set(Version ^ value); };
public Version Version { get; set; }
member this.Version : Version with get, set
Public Property Version As Version

Property Value

The HTTP message version. The default in the .NET Framework and earlier versions of .NET Core is 1.1. In .NET Core 2.1 and later, it is 2.0.

Remarks

Starting with .NET Core 2.1, the default value of the Version property changed from 1.1 to 2.0.

Applies to