共用方式為


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

藍牙LEAdvertisement物件,可套用為接收藍牙 LE 廣告的篩選。

BytePatterns

取得位元組模式的向量,其中包含位移以符合所接收藍牙 LE 公告中公告區段的位移。

適用於

另請參閱