| DispatcherExtensionsRunIdleAsync Method |
Runs the handler at idle priority.
Namespace: Microsoft.IoT.DeviceCoreAssembly: Microsoft.IoT.DeviceCore (in Microsoft.IoT.DeviceCore.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static IAsyncAction RunIdleAsync(
this CoreDispatcher dispatcher,
DispatchedHandler handler
)
<ExtensionAttribute>
Public Shared Function RunIdleAsync (
dispatcher As CoreDispatcher,
handler As DispatchedHandler
) As IAsyncAction
public:
[ExtensionAttribute]
static IAsyncAction^ RunIdleAsync(
[InAttribute] CoreDispatcher^ dispatcher,
[InAttribute] DispatchedHandler^ handler
)
[<ExtensionAttribute>]
static member RunIdleAsync :
dispatcher : CoreDispatcher *
handler : DispatchedHandler -> IAsyncAction
Parameters
- dispatcher
- Type: Windows.UI.CoreCoreDispatcher
The CoreDispatcher that will run the handler.
- handler
- Type: Windows.UI.CoreDispatchedHandler
The handler to run.
Return Value
Type:
IAsyncAction
The
IAsyncAction that represents the operation.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
CoreDispatcher. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also