共用方式為


DevicePortalConnectionRequestReceivedEventArgs.WebSocketProtocolsRequested 屬性

定義

取得 WebSocket 要求遵循的子通訊協定清單。

public:
 property IVectorView<Platform::String ^> ^ WebSocketProtocolsRequested { IVectorView<Platform::String ^> ^ get(); };
IVectorView<winrt::hstring> WebSocketProtocolsRequested();
public IReadOnlyList<string> WebSocketProtocolsRequested { get; }
var iVectorView = devicePortalConnectionRequestReceivedEventArgs.webSocketProtocolsRequested;
Public ReadOnly Property WebSocketProtocolsRequested As IReadOnlyList(Of String)

屬性值

IVectorView<String>

IReadOnlyList<String>

IVectorView<Platform::String>

IVectorView<winrt::hstring>

代表 WebSocket 子通訊協定的字串清單。

Windows 需求

裝置系列
Windows 10, version 1803 (已於 10.0.17134.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v6.0 引進)

適用於