[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Starts acquisition of data from the sensor.
Assembly: Microsoft.Devices.Sensors (in Microsoft.Devices.Sensors.dll)
This method may throw one of the following exceptions.
The calling application does not have the Sensors capability. For more information about capabilities, see App manifest file for Windows Phone 8.
The sensor is not present on the device.
The sensor could not be started due to insufficient memory.
The Accelerometer object has already been disposed.
Data acquisition from the sensor cannot be started. The cause of the error is described in the exception’s message field.