UserActivityChannel.GetRecentUserActivitiesAsync(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get up to the specified number of the most recently engaged user activities, sorted by the time each user activity ended.
public:
virtual IAsyncOperation<IVector<UserActivitySessionHistoryItem ^> ^> ^ GetRecentUserActivitiesAsync(int maxUniqueActivities) = GetRecentUserActivitiesAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVector<UserActivitySessionHistoryItem>> GetRecentUserActivitiesAsync(int const& maxUniqueActivities);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IList<UserActivitySessionHistoryItem>> GetRecentUserActivitiesAsync(int maxUniqueActivities);
function getRecentUserActivitiesAsync(maxUniqueActivities)
Public Function GetRecentUserActivitiesAsync (maxUniqueActivities As Integer) As IAsyncOperation(Of IList(Of UserActivitySessionHistoryItem))
Parameters
- maxUniqueActivities
-
Int32
int
The maximum number of user activities to get. Fewer may be returned if there aren't as many user activities as requested.
Returns
A list of user activities, sorted by when the activities ended.
- Attributes
Windows requirements
Device family |
Windows 10, version 1803 (introduced in 10.0.17134.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v6.0)
|
Remarks
User activities with a null
end time appear first in the list.