Udostępnij za pośrednictwem


WorkItemOptions Enum

Definition

Specifies how work items should be run.

This enumeration supports a bitwise combination of its member values.

public enum class WorkItemOptions
/// [System.Flags]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class WorkItemOptions
[System.Flags]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum WorkItemOptions
Public Enum WorkItemOptions
Inheritance
WorkItemOptions
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
None 0

The work item should be run when the thread pool has an available worker thread.

TimeSliced 1

The work items should be run simultaneously with other work items sharing a processor.

Applies to

See also