Share via


DisplayTaskPool.ExecuteTask(DisplayTask) Method

Definition

Queues a DisplayTask for execution on the device. Tasks are executed asynchronously, so this method returns immediately.

Note

ExecuteTask is deprecated in favor of DisplayTaskPool.TryExecuteTask, which provides feedback about the state of the presentation request.

public:
 virtual void ExecuteTask(DisplayTask ^ task) = ExecuteTask;
void ExecuteTask(DisplayTask const& task);
/// [Windows.Foundation.Metadata.Deprecated("Use TryExecuteTask instead of ExecuteTask. For more info see MSDN", Windows.Foundation.Metadata.DeprecationType.Deprecate, 851968, "Windows.Foundation.UniversalApiContract")]
void ExecuteTask(DisplayTask const& task);
public void ExecuteTask(DisplayTask task);
[Windows.Foundation.Metadata.Deprecated("Use TryExecuteTask instead of ExecuteTask. For more info see MSDN", Windows.Foundation.Metadata.DeprecationType.Deprecate, 851968, "Windows.Foundation.UniversalApiContract")]
public void ExecuteTask(DisplayTask task);
function executeTask(task)
Public Sub ExecuteTask (task As DisplayTask)

Parameters

task
DisplayTask

The DisplayTask to queue.

Attributes

Applies to

See also