Share via


BluetoothLEScanningMode 枚举

定义

定义指定蓝牙 LE 扫描模式的常量。

public enum class BluetoothLEScanningMode
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class BluetoothLEScanningMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum BluetoothLEScanningMode
var value = Windows.Devices.Bluetooth.Advertisement.BluetoothLEScanningMode.passive
Public Enum BluetoothLEScanningMode
继承
BluetoothLEScanningMode
属性

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 中引入)
应用功能
bluetooth

字段

Active 1

指定活动扫描模式。 这表示将从平台发送扫描请求数据包,以主动查询更多 BluetoothLEAdvertisementType.ScanResponse 类型的广告数据。

None 2

不指定扫描模式。 观察程序将在系统接收广告时提供广告,但不会启动自己的扫描。

Passive 0

指定被动扫描模式。 这是默认扫描模式。

注解

版本历史记录

Windows 版本 SDK 版本 增值
2004 19041

适用于