DevicePortalConnectionRequestReceivedEventArgs.IsWebSocketUpgradeRequest 属性

定义

获取一个值,该值描述请求是否用于 WebSocket 通信。

public:
 property bool IsWebSocketUpgradeRequest { bool get(); };
bool IsWebSocketUpgradeRequest();
public bool IsWebSocketUpgradeRequest { get; }
var boolean = devicePortalConnectionRequestReceivedEventArgs.isWebSocketUpgradeRequest;
Public ReadOnly Property IsWebSocketUpgradeRequest As Boolean

属性值

Boolean

bool

如果正在请求 WebSocket,则为 True,否则为 False

Windows 要求

设备系列
Windows 10, version 1803 (在 10.0.17134.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v6.0 中引入)

适用于