BluetoothLEAdvertisementFilter 类

定义

用于配置接收蓝牙 LE 播发的基于有效负载的筛选的组参数。

public ref class BluetoothLEAdvertisementFilter sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class BluetoothLEAdvertisementFilter final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class BluetoothLEAdvertisementFilter final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class BluetoothLEAdvertisementFilter
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class BluetoothLEAdvertisementFilter
function BluetoothLEAdvertisementFilter()
Public NotInheritable Class BluetoothLEAdvertisementFilter
继承
Object Platform::Object IInspectable BluetoothLEAdvertisementFilter
属性

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

注解

蓝牙 LE 播发筛选器应用于播发事件数据包,而不是整个播发的设备/源。 同一设备可以同时广播具有不同有效负载的播发数据包。 例如,本地名称通常位于与包含服务 UUID 的数据包不同的播发数据包中。 因此,如果筛选器设置为服务 UUID,则具有本地名称的数据包将不可用, (在这种情况下,只有同时具有服务 UUID 和本地名称的数据包才可用) 。

构造函数

BluetoothLEAdvertisementFilter()

创建新的 BluetoothLEAdvertisementFilter 对象。

属性

Advertisement

一个 BluetoothLEAdvertisement 对象,可作为筛选器应用于接收的蓝牙 LE 广告。

BytePatterns

获取具有偏移量的字节模式的向量,以匹配接收的蓝牙 LE 播发中的播发部分。

适用于

另请参阅