共用方式為


Pedometer.GetSystemHistoryAsync 方法

定義

多載

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

您想要擷取讀取的時間。

duration
TimeSpan TimeSpan

您想要擷取資料的持續時間。

傳回

以非同步方式傳回代表感應器相關資訊的 PedometerReading 物件清單。

屬性

另請參閱

適用於