CoreUserActivityManager.CreateUserActivitySessionInBackground 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.
Creates a user activity session.
public:
static UserActivitySession ^ CreateUserActivitySessionInBackground(UserActivity ^ activity);
static UserActivitySession CreateUserActivitySessionInBackground(UserActivity const& activity);
public static UserActivitySession CreateUserActivitySessionInBackground(UserActivity activity);
function createUserActivitySessionInBackground(activity)
Public Shared Function CreateUserActivitySessionInBackground (activity As UserActivity) As UserActivitySession
Parameters
- activity
- UserActivity
Returns
Remarks
The background in this API name refers to the fact that the session is not associated with a window.
A session allows you to group user activities together so that you can do things such as delete all user activities created during a given timeframe.