ActivityMonitorSimulator.GetActivityHistoryAsync Method
Returns time ordered list of activities occured during given time period.
Namespace: Lumia.Sense.Testing
Assembly: Lumia.Sense.Testing (in Lumia.Sense.Testing.dll) Version: 255.255.255.255
Syntax
public IAsyncOperation<IList<ActivityMonitorReading>> GetActivityHistoryAsync(
DateTimeOffset periodFrom,
TimeSpan span
)
'Declaration
Public Function GetActivityHistoryAsync (
periodFrom As DateTimeOffset,
span As TimeSpan
) As IAsyncOperation(Of IList(Of ActivityMonitorReading))
public:
virtual IAsyncOperation<IList<ActivityMonitorReading^>^>^ GetActivityHistoryAsync(
[InAttribute] DateTimeOffset periodFrom,
[InAttribute] TimeSpan span
) sealed
function GetActivityHistoryAsync(periodFrom, span);
Parameters
- periodFrom
Type: System.DateTimeOffset
time period start
- span
Type: System.TimeSpan
time period length
Return Value
Type: IAsyncOperation<IList<ActivityMonitorReading>>
Activity history
Implements
IActivityMonitor.GetActivityHistoryAsync(DateTimeOffset, TimeSpan)
Exceptions
Exception | Condition |
---|---|
COMException | All errors are thrown as instances of COMException. To get details about the error pass the HResult property of the exception to GetSenseError(Int32). This method can return the following SenseError enumeration values: GeneralFailure |
See Also
ActivityMonitorSimulator Class