SensorBase<(Of <(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)

Syntax

Public Overridable Sub Start
public virtual void Start()

Remarks

This method may throw one of the following exceptions.

UnauthorizedAccessException

The calling application does not have the Sensors capability. For more information about capabilities, see App manifest file for Windows Phone 8.

InvalidOperationException

The sensor is not present on the device.

OutOfMemoryException

The sensor could not be started due to insufficient memory.

ObjectDisposedException

The Accelerometer object has already been disposed.

SensorFailedException

Data acquisition from the sensor cannot be started. 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