ActivitySensor.GetSystemHistoryAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetSystemHistoryAsync(DateTime) |
异步获取特定时间的传感器读数。 |
GetSystemHistoryAsync(DateTime, TimeSpan) |
异步获取特定时间和持续时间的传感器读数。 |
GetSystemHistoryAsync(DateTime)
异步获取特定时间的传感器读数。
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))
参数
- fromTime
- DateTime DateTimeOffset
获取传感器读数的时间。
返回
异步返回 ActivitySensorReading 对象的列表,这些对象表示有关传感器的信息。
- 属性
另请参阅
适用于
GetSystemHistoryAsync(DateTime, TimeSpan)
异步获取特定时间和持续时间的传感器读数。
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))
参数
- fromTime
- DateTime DateTimeOffset
获取传感器读数的时间。
返回
异步返回 ActivitySensorReading 对象的列表,这些对象表示有关传感器的信息。
- 属性