ClientWebSocketOptions.HttpVersionPolicy 属性

定义

获取或设置策略,该策略确定如何解释 HttpVersion,以及如何与服务器协商最终的 HTTP 版本。

public:
 property System::Net::Http::HttpVersionPolicy HttpVersionPolicy { System::Net::Http::HttpVersionPolicy get(); void set(System::Net::Http::HttpVersionPolicy value); };
public System.Net.Http.HttpVersionPolicy HttpVersionPolicy { get; [System.Runtime.Versioning.UnsupportedOSPlatform("browser")] set; }
[<set: System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.HttpVersionPolicy : System.Net.Http.HttpVersionPolicy with get, set
Public Property HttpVersionPolicy As HttpVersionPolicy

属性值

建立 HTTP 连接时使用的版本策略。

属性

适用于