共用方式為


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。

適用於

另請參閱