BluetoothLEAdvertisementPublisher.Advertisement Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
|