CoreDispatcher.TryRunIdleAsync(IdleDispatchedHandler) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
尝试以空闲优先级从工作线程在 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
调度事件时空闲优先级调度程序返回的回调。
返回
异步操作。
- 属性