Share via


CoreUserActivityManager.CreateUserActivitySessionInBackground Method

Definition

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.

Applies to