語言

ServerStreamWebSocketInformation.Protocol 屬性

定義

在 ServerStreamWebSocket物件的 WebSocket 握手時,取得與伺服器協商的 WebSocket 子協定。

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

屬性值

String

Platform::String

winrt::hstring

子協定在 WebSocket 握手時與伺服器協商。

Windows 需求

規格需求 Description
應用程式功能
internetClientServer privateNetworkClientServer

適用於