StartupTask.RequestEnableAsync StartupTask.RequestEnableAsync StartupTask.RequestEnableAsync StartupTask.RequestEnableAsync StartupTask.RequestEnableAsync Method

Definition

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.

public : IAsyncOperation<StartupTaskState> RequestEnableAsync()
IAsyncOperation<StartupTaskState> RequestEnableAsync() const;
public IAsyncOperation<StartupTaskState> RequestEnableAsync()
Public Function RequestEnableAsync() As IAsyncOperation(Of StartupTaskState)
Windows.ApplicationModel.StartupTask.requestEnableAsync().done( /* Your success and error handlers */ );

Returns

When this method completes, it returns the state of the startup task.