HttpResponseMessage.Version 属性

定义

获取或设置 HttpResponseMessage 对象上使用的 HTTP 协议版本。

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

void Version(HttpVersion value);
public HttpVersion Version { get; set; }
var httpVersion = httpResponseMessage.version;
httpResponseMessage.version = httpVersion;
Public Property Version As HttpVersion

属性值

HTTP 协议版本。 默认值为 1.1。

适用于

另请参阅