Compass Class

Inheritance Hierarchy

System.Object
  Microsoft.Devices.Sensors.SensorBase<CompassReading>
    Microsoft.Devices.Sensors.Compass

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

Syntax

'Declaration
Public NotInheritable Class Compass _
    Inherits SensorBase(Of CompassReading)
public sealed class Compass : SensorBase<CompassReading>
public ref class Compass sealed : public SensorBase<CompassReading>
[<Sealed>]
type Compass =  
    class 
        inherit SensorBase<CompassReading>
    end

The Compass type exposes the following members.

Constructors

  Name Description
Public method Compass

Top

Properties

  Name Description
Public property CurrentValue (Inherited from SensorBase<TSensorReading>.)
Public property IsDataValid (Inherited from SensorBase<TSensorReading>.)
Public propertyStatic member IsSupported
Public property TimeBetweenUpdates (Inherited from SensorBase<TSensorReading>.)

Top

Methods

  Name Description
Public method Dispose (Inherited from SensorBase<TSensorReading>.)
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Start (Inherited from SensorBase<TSensorReading>.)
Public method Stop (Inherited from SensorBase<TSensorReading>.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event Calibrate
Public event CurrentValueChanged (Inherited from SensorBase<TSensorReading>.)

Top

Version Information

.NET for Windows Phone apps

Supported in: Windows Phone 8, Silverlight 8.1

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Devices.Sensors Namespace