共用方式為


ActivitySensor.GetSystemHistoryAsync 方法

定義

多載

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

取得感應器讀數的時間。

duration
TimeSpan TimeSpan

要在其中取得感應器讀數的時間範圍。

傳回

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

屬性

另請參閱

適用於