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)

Syntax

Public Overridable Sub Stop
public virtual void Stop()

Remarks

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

This method may throw one of the following exceptions.

SensorFailedException

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

Platforms

Windows Phone

See Also

Reference

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

Microsoft.Devices.Sensors Namespace