SensorBase(Of TSensorReading).TimeBetweenUpdates Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets the preferred time between CurrentValueChanged events.
Assembly: Microsoft.Devices.Sensors (in Microsoft.Devices.Sensors.dll)
Property Value
Type: System.TimeSpanType: TimeSpan. The preferred time between CurrentValueChanged events.
Different devices are capable of different rates of providing sensor data. You can query this property after setting it to see what value is actually being used. The default value is 2 milliseconds.
If the sensor is not present, a System.InvalidOperationException is thrown when you access this property. Before accessing this property, use the IsSupported property for the particular sensor to determine if the device is present and handle the InvalidOpertionException gracefully in case that sensor does not exist.