Dela via


BluetoothLEScanningMode Enum

Definition

Defines constants that specify a Bluetooth LE scanning mode.

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
Inheritance
BluetoothLEScanningMode
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
bluetooth

Fields

Name Value Description
Passive 0

Specifies a passive scanning mode. This is the default scanning mode.

Active 1

Specifies an active scanning mode. This indicates that scan request packets will be sent from the platform to actively query for more advertisement data of type BluetoothLEAdvertisementType.ScanResponse.

None 2

Specifies no scanning mode. The watcher will provide advertisements as the system receives them, but will not initiate its own scanning.

Remarks

Version history

Windows version SDK version Value added
2004 19041 None

Applies to