Share via


BluetoothLEAdvertisementPublisher.Advertisement Property

Definition

Gets a copy of the Bluetooth LE advertisement to publish.

When configuring the publisher object, you can't add restricted section types (BluetoothLEAdvertisementPublisher.Advertisement.Flags and BluetoothLEAdvertisementPublisher.Advertisement.LocalName). Trying to set those property values results in a runtime exception. You can still set the manufacturer data section, or any other sections not defined by the list of restrictions.

public:
 property BluetoothLEAdvertisement ^ Advertisement { BluetoothLEAdvertisement ^ get(); };
BluetoothLEAdvertisement Advertisement();
public BluetoothLEAdvertisement Advertisement { get; }
var bluetoothLEAdvertisement = bluetoothLEAdvertisementPublisher.advertisement;
Public ReadOnly Property Advertisement As BluetoothLEAdvertisement

Property Value

A copy of the Bluetooth LE advertisement to publish.

Windows requirements

App capabilities
bluetooth

Applies to

See also