Stop Method
Collapse the table of content
Expand the table of content

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)

'Declaration
Public Overridable Sub Stop

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft