SensorBase<(Of <(TSensorReading>)>).Stop Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Stops acquisition of data from the sensor.

Namespace: Microsoft.Devices.Sensors
Assembly: Microsoft.Devices.Sensors (in Microsoft.Devices.Sensors.dll)


Public Overridable Sub Stop
public virtual void Stop()


This method does nothing if the sensor is not already running.

This method may throw one of the following exceptions.


Data acquisition from the sensor cannot be stopped. The cause of the error is described in the exception’s message field.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1


Windows Phone

See Also


SensorBase<(Of <(TSensorReading>)>) Class

Microsoft.Devices.Sensors Namespace