Click or drag to resize

ThreadWithDispatcherBeginInvoke Method (DispatcherPriority, Action)

Invokes the specified method asynchronously in the dispatcher thread.

Namespace:  TomsToolbox.Wpf
Assembly:  TomsToolbox.Wpf (in TomsToolbox.Wpf.dll)
Syntax
public DispatcherOperation BeginInvoke(
	DispatcherPriority priority,
	Action method
)

Parameters

priority
Type: System.Windows.ThreadingDispatcherPriority
The priority to use.
method
Type: SystemAction
The method.

Return Value

Type: DispatcherOperation
The dispatcher operation to track the outcome of the call.
Exceptions
ExceptionCondition
InvalidOperationExceptionThe dispatcher has already shut down.
See Also