BluetoothLEAdvertisementPublisher.Stop Method
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.
Stop the publisher and stop advertising a Bluetooth LE advertisement payload.
public:
virtual void Stop() = Stop;
void Stop();
public void Stop();
function stop()
Public Sub Stop ()
Windows requirements
App capabilities |
bluetooth
|
Remarks
The status of the BluetoothLEAdvertisementPublisher will transition to the Stopping state until the advertising is cancelled in which the state will transition to Stopped state. Calling the Stop method in the Stopped or Aborted state has no effect. Calling the Stop method in the Stopping state will overwrite any advertisements in the last Start method call during that state.
The BluetoothLEAdvertisementPublisher will be automatically stopped when an app is suspended.