共用方式為


CoreDispatcher.TryRunIdleAsync(IdleDispatchedHandler) 方法

定義

嘗試從處於閒置優先順序的背景工作執行緒排程 UI 執行緒上的回呼,並以非同步方式傳回結果。

public:
 virtual IAsyncOperation<bool> ^ TryRunIdleAsync(IdleDispatchedHandler ^ agileCallback) = TryRunIdleAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryRunIdleAsync(IdleDispatchedHandler const& agileCallback);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryRunIdleAsync(IdleDispatchedHandler agileCallback);
function tryRunIdleAsync(agileCallback)
Public Function TryRunIdleAsync (agileCallback As IdleDispatchedHandler) As IAsyncOperation(Of Boolean)

參數

agileCallback
IdleDispatchedHandler

在分派事件時,閒置優先順序發送器傳回的回呼。

傳回

非同步作業。

屬性

適用於

另請參閱