SensorBase<TSensorReading> Class

Inheritance Hierarchy

System.Object
  Microsoft.Devices.Sensors.SensorBase<TSensorReading>
    Microsoft.Devices.Sensors.Accelerometer
    Microsoft.Devices.Sensors.Compass
    Microsoft.Devices.Sensors.Gyroscope
    Microsoft.Devices.Sensors.Motion

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

Syntax

'Declaration
Public MustInherit Class SensorBase(Of TSensorReading As ISensorReading) _
    Implements IDisposable
public abstract class SensorBase<TSensorReading> : IDisposable 
where TSensorReading : ISensorReading
generic<typename TSensorReading>
where TSensorReading : ISensorReading 
public ref class SensorBase abstract : IDisposable
[<AbstractClass>]
type SensorBase<'TSensorReading when 'TSensorReading : ISensorReading> =  
    class 
        interface IDisposable 
    end

Type Parameters

  • TSensorReading

The SensorBase<TSensorReading> type exposes the following members.

Properties

  Name Description
Public property CurrentValue
Public property IsDataValid
Public property TimeBetweenUpdates

Top

Methods

  Name Description
Public method Dispose
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize (Overrides Object.Finalize().)
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.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Start
Public method Stop
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event CurrentValueChanged

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