Start Method
Collapse the table of content
Expand the table of content

SensorBase<TSensorReading>.Start Method

[ 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.

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

public virtual void Start()

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

© 2017 Microsoft