इसके माध्यम से साझा किया गया


CoreDispatcher.ShouldYield Method

Definition

Overloads

ShouldYield()

Queries whether the caller should yield if there are items in the task queue of higher priority than the current task.

ShouldYield(CoreDispatcherPriority)

Queries whether the caller should yield if there are items in the task queue of the specified priority or higher.

ShouldYield()

Queries whether the caller should yield if there are items in the task queue of higher priority than the current task.

public:
 virtual bool ShouldYield() = ShouldYield;
/// [Windows.Foundation.Metadata.Overload("ShouldYield")]
bool ShouldYield();
[Windows.Foundation.Metadata.Overload("ShouldYield")]
public bool ShouldYield();
function shouldYield()
Public Function ShouldYield () As Boolean

Returns

Boolean

bool

true if the current work item should yield to higher priority work; false if it should not.

Attributes

See also

Applies to

ShouldYield(CoreDispatcherPriority)

Queries whether the caller should yield if there are items in the task queue of the specified priority or higher.

public:
 virtual bool ShouldYield(CoreDispatcherPriority priority) = ShouldYield;
/// [Windows.Foundation.Metadata.Overload("ShouldYieldToPriority")]
bool ShouldYield(CoreDispatcherPriority const& priority);
[Windows.Foundation.Metadata.Overload("ShouldYieldToPriority")]
public bool ShouldYield(CoreDispatcherPriority priority);
function shouldYield(priority)
Public Function ShouldYield (priority As CoreDispatcherPriority) As Boolean

Parameters

priority
CoreDispatcherPriority

The minimum priority level for which the current work item should yield.

Returns

Boolean

bool

true if the current work item should yield to higher priority work; false if it should not.

Attributes

See also

Applies to