Compass Constructor

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the Compass class.

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

Syntax

Public Sub New
public Compass()

Exceptions

Exception Condition
SensorFailedException

The limit of 10 simultaneous instances of the Compass class per application has been exceeded.

Remarks

An application can create a maximum of 10 simultaneous instances of the Compass class. An exception will be thrown if this limit is exceeded.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Platforms

Windows Phone

See Also

Reference

Compass Class

Microsoft.Devices.Sensors Namespace