ServerMessageWebSocketInformation.Protocol 属性

定义

获取在对 ServerMessageWebSocket 对象进行 WebSocket 握手期间与 服务器协商的 WebSocket 子协议。

public:
 property Platform::String ^ Protocol { Platform::String ^ get(); };
winrt::hstring Protocol();
public string Protocol { get; }
var string = serverMessageWebSocketInformation.protocol;
Public ReadOnly Property Protocol As String

属性值

String

Platform::String

winrt::hstring

在 WebSocket 握手期间与服务器协商的子协议。

Windows 要求

应用功能
internetClientServer privateNetworkClientServer

适用于