Windows.ApplicationModel.StartupTaskContract
Represents a UWP app, or a Desktop Bridge background task, that runs at system startup or when the user logs in to their device.
Gets the state (enabled, disabled, or disabled by user) of the startup task.
The state of the startup task.
Gets the Id of the startup task.
The Id of the startup task.
Disables the startup task.
Gets a startup task by Id.
The Id of the startup task to get.
When this method completes, it returns the startup task with the given Id.
Gets all startup tasks for the current app package.
When this method completes, it returns all startup tasks for the current app package.
Requests that the startup task be enabled. If the task was disabled by the user using Task Manager, this method will not override their choice and the user must re-enable the task manually.
When this method completes, it returns the state of the startup task.
Represents the state (enabled, disabled, or disabled by user) of a startup task.
The task is disabled.
The task is disabled by the administrator or group policy. Platforms that don't support startup tasks also report **DisabledByPolicy**.
The task was disabled by the user. It can only be re-enabled by the user.
The task is enabled.
The task is enabled by the administrator or group policy.