WiFiDirectConnectionStatus 枚举

定义

描述 WiFiDirectDevice 对象的连接状态。

public enum class WiFiDirectConnectionStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class WiFiDirectConnectionStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum WiFiDirectConnectionStatus
var value = Windows.Devices.WiFiDirect.WiFiDirectConnectionStatus.disconnected
Public Enum WiFiDirectConnectionStatus
继承
WiFiDirectConnectionStatus
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

字段

Connected 1

设备已连接到关联的 Wi-Fi Direct 设备。

Disconnected 0

设备未连接。

适用于

另请参阅