DisplayTaskPool.ExecuteTask(DisplayTask) Method
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.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for