CoreDispatcher.ShouldYield 方法

定義

多載

ShouldYield()

查詢呼叫端是否應該在工作佇列中優先順序高於目前工作的專案時產生。

ShouldYield(CoreDispatcherPriority)

查詢呼叫端是否應該在指定優先權或更高的工作佇列中有專案時產生。

ShouldYield()

查詢呼叫端是否應該在工作佇列中優先順序高於目前工作的專案時產生。

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

傳回

Boolean

bool

如果目前的工作專案應該產生較高的優先順序工時,則為true;如果不應該,則為 false。

屬性

另請參閱

適用於

ShouldYield(CoreDispatcherPriority)

查詢呼叫端是否應該在指定優先權或更高的工作佇列中有專案時產生。

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

參數

priority
CoreDispatcherPriority

目前工作專案應該產生的最低優先順序層級。

傳回

Boolean

bool

如果目前的工作專案應該產生較高的優先順序工時,則為true;如果不應該,則為 false。

屬性

另請參閱

適用於