ActivitySensor.GetSystemHistoryAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetSystemHistoryAsync(DateTime) |
Asynchronously gets sensor readings from a specific time. |
GetSystemHistoryAsync(DateTime, TimeSpan) |
Asynchronously gets sensor readings from a specific time and duration. |
GetSystemHistoryAsync(DateTime)
Asynchronously gets sensor readings from a specific time.
public:
static IAsyncOperation<IVectorView<ActivitySensorReading ^> ^> ^ GetSystemHistoryAsync(DateTime fromTime);
/// [Windows.Foundation.Metadata.Overload("GetSystemHistoryAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<IVectorView<ActivitySensorReading>> GetSystemHistoryAsync(DateTime const& fromTime);
[Windows.Foundation.Metadata.Overload("GetSystemHistoryAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<IReadOnlyList<ActivitySensorReading>> GetSystemHistoryAsync(System.DateTimeOffset fromTime);
function getSystemHistoryAsync(fromTime)
Public Shared Function GetSystemHistoryAsync (fromTime As DateTimeOffset) As IAsyncOperation(Of IReadOnlyList(Of ActivitySensorReading))
Parameters
- fromTime
- DateTime DateTimeOffset
The time at which to get sensor readings.
Returns
Asynchronously returns a list of ActivitySensorReading objects that represent info about the sensor.
- Attributes
See also
Applies to
GetSystemHistoryAsync(DateTime, TimeSpan)
Asynchronously gets sensor readings from a specific time and duration.
public:
static IAsyncOperation<IVectorView<ActivitySensorReading ^> ^> ^ GetSystemHistoryAsync(DateTime fromTime, TimeSpan duration);
/// [Windows.Foundation.Metadata.Overload("GetSystemHistoryWithDurationAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<IVectorView<ActivitySensorReading>> GetSystemHistoryAsync(DateTime const& fromTime, TimeSpan const& duration);
[Windows.Foundation.Metadata.Overload("GetSystemHistoryWithDurationAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<IReadOnlyList<ActivitySensorReading>> GetSystemHistoryAsync(System.DateTimeOffset fromTime, System.TimeSpan duration);
function getSystemHistoryAsync(fromTime, duration)
Public Shared Function GetSystemHistoryAsync (fromTime As DateTimeOffset, duration As TimeSpan) As IAsyncOperation(Of IReadOnlyList(Of ActivitySensorReading))
Parameters
- fromTime
- DateTime DateTimeOffset
The time at which to get sensor readings.
Returns
Asynchronously returns a list of ActivitySensorReading objects that represent info about the sensor.
- Attributes