Share via


UserActivity.CreateSession Method

Definition

Creates a UserActivitySession that this user activity will be associated with. You must call this method on the UI thread.

public:
 virtual UserActivitySession ^ CreateSession() = CreateSession;
UserActivitySession CreateSession();
public UserActivitySession CreateSession();
function createSession()
Public Function CreateSession () As UserActivitySession

Returns

The created session.

Remarks

When a UserActivity is associated with a UserActivitySession, it indicates that the user is currently engaged in the activity.

Applies to