Click or drag to resize

ThreadWithDispatcherInvokeT Method (FuncT)

Invokes the specified method in the dispatcher thread.

Namespace:  TomsToolbox.Wpf
Assembly:  TomsToolbox.Wpf (in TomsToolbox.Wpf.dll)
Syntax
public T Invoke<T>(
	Func<T> method
)

Parameters

method
Type: SystemFuncT
The method.

Type Parameters

T
The return type of the method.

Return Value

Type: T
The result of the method.
Exceptions
ExceptionCondition
InvalidOperationExceptionThe dispatcher has already shut down.
Remarks
Exceptions thrown by method are passed back to the caller and are not wrapped into a TargetInvocationException.
See Also