Click or drag to resize
DispatcherExtensionsRunAsync Method
Runs the handler at normal priority.

Namespace: Microsoft.IoT.DeviceCore
Assembly: Microsoft.IoT.DeviceCore (in Microsoft.IoT.DeviceCore.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static IAsyncAction RunAsync(
	this CoreDispatcher dispatcher,
	DispatchedHandler handler
)

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