Share via


BluetoothLEAdvertisementPublisher.Stop Method

Definition

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.

Applies to

See also