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 | |
---|---|---|
![]() |
CurrentValue | |
![]() |
IsDataValid | |
![]() |
TimeBetweenUpdates |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Dispose | |
![]() |
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() |
Finalize | (Overrides Object.Finalize().) |
![]() |
GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
Start | |
![]() |
Stop | |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Events
Name | Description | |
---|---|---|
![]() |
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.