UserActivityRequest Class

Definition

Passed as an argument to the UserActivityRequestManager.UserActivityRequested event. Used to return a UserActivity to the caller.

public ref class UserActivityRequest sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class UserActivityRequest final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class UserActivityRequest
Public NotInheritable Class UserActivityRequest
Inheritance
Object Platform::Object IInspectable UserActivityRequest
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

If the system is taking action that it wants to associate with a new user activity within an app, the system raises the UserActivityRequestManager.UserActivityRequested event, and the app returns a UserActivity via the event args.

Methods

SetUserActivity(UserActivity)

Sets the UserActivity to return when the UserActivityRequested event is raised.

Applies to

See also