UserActivityRequest Class
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.
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
- 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. |