Jaa


BluetoothLEAdvertisement Class

Definition

A representation of a Bluetooth LE advertisement payload.

public ref class BluetoothLEAdvertisement 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 BluetoothLEAdvertisement 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 BluetoothLEAdvertisement 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 BluetoothLEAdvertisement
[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 BluetoothLEAdvertisement
function BluetoothLEAdvertisement()
Public NotInheritable Class BluetoothLEAdvertisement
Inheritance
Object Platform::Object IInspectable BluetoothLEAdvertisement
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

Remarks

This class is used to represent an advertisement received by the system, an advertisement pattern to filter for, or an advertisement payload that needs to be published. In the case it is generated by the system to represent an advertisement received, certain properties are automatically populated.

For more information about its usage, refer to BluetoothLEAdvertisementWatcher class for receiving advertisements and the BluetoothLEAdvertisementPublisher class for sending advertisements.

Constructors

BluetoothLEAdvertisement()

Creates a new BluetoothLEAdvertisement object.

Properties

DataSections

Gets the list of raw data sections.

Flags

Bluetooth LE advertisement flags.

LocalName

The local name contained within the advertisement.

ManufacturerData

Gets the list of manufacturer-specific data sections in a BluetoothLEAdvertisement.

ServiceUuids

Gets the list of service UUIDs (in 128-bit GUID format) in a BluetoothLEAdvertisement.

Methods

GetManufacturerDataByCompanyId(UInt16)

Return a list of all manufacturer data sections in the BluetoothLEAdvertisement payload matching the specified company ID.

GetSectionsByType(Byte)

Return a list of advertisement data sections that matches a given advertisement section type in a BluetoothLEAdvertisement.

Applies to

See also