DisplayTaskPool Class

Definition

Provides methods to allocate and execute tasks on a DisplayDevice.

public ref class DisplayTaskPool sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class DisplayTaskPool final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class DisplayTaskPool
Public NotInheritable Class DisplayTaskPool
Inheritance
Object Platform::Object IInspectable DisplayTaskPool
Attributes

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Methods

CreateTask()

Creates a DisplayTask object.

ExecuteTask(DisplayTask)

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.

TryExecuteTask(DisplayTask)

Queues a DisplayTask for execution on the device. Tasks are executed asynchronously, so this method returns immediately. TryExecuteTask provides a DisplayTaskResult object, which affords you multiple pieces of feedback/info regarding the state of the presentation request.

Applies to