Pedometer.GetSystemHistoryAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetSystemHistoryAsync(DateTime) |
异步获取特定时间的传感器读数。 |
GetSystemHistoryAsync(DateTime, TimeSpan) |
异步获取特定时间和持续时间的计步器读数。 |
GetSystemHistoryAsync(DateTime)
异步获取特定时间的传感器读数。
public:
static IAsyncOperation<IVectorView<PedometerReading ^> ^> ^ GetSystemHistoryAsync(DateTime fromTime);
/// [Windows.Foundation.Metadata.Overload("GetSystemHistoryAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<IVectorView<PedometerReading>> GetSystemHistoryAsync(DateTime const& fromTime);
[Windows.Foundation.Metadata.Overload("GetSystemHistoryAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<IReadOnlyList<PedometerReading>> GetSystemHistoryAsync(System.DateTimeOffset fromTime);
function getSystemHistoryAsync(fromTime)
Public Shared Function GetSystemHistoryAsync (fromTime As DateTimeOffset) As IAsyncOperation(Of IReadOnlyList(Of PedometerReading))
参数
- fromTime
- DateTime DateTimeOffset
要检索读取的时间。
返回
异步返回表示传感器相关信息的 PedometerReading 对象的列表。
- 属性
另请参阅
适用于
GetSystemHistoryAsync(DateTime, TimeSpan)
异步获取特定时间和持续时间的计步器读数。
public:
static IAsyncOperation<IVectorView<PedometerReading ^> ^> ^ GetSystemHistoryAsync(DateTime fromTime, TimeSpan duration);
/// [Windows.Foundation.Metadata.Overload("GetSystemHistoryWithDurationAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<IVectorView<PedometerReading>> GetSystemHistoryAsync(DateTime const& fromTime, TimeSpan const& duration);
[Windows.Foundation.Metadata.Overload("GetSystemHistoryWithDurationAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<IReadOnlyList<PedometerReading>> 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 PedometerReading))
参数
- fromTime
- DateTime DateTimeOffset
要检索读取的时间。
返回
异步返回表示传感器相关信息的 PedometerReading 对象的列表。
- 属性