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

调度事件时空闲优先级调度程序返回的回调。

返回

异步操作。

属性

适用于

另请参阅