WiFiDirectAdvertisementListenStateDiscoverability 枚举

定义

指定 Wi-Fi Direct 设备是否在侦听和可发现。

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

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 中引入)

字段

Intensive 2

当应用位于前台或后台时,设备是可发现的。

None 0

设备不可发现。

Normal 1

只要应用位于前台,设备就高度可发现。

适用于