Click or drag to resize

TaskUtilitiesStartSTAThreadTaskT Method (FuncT)

Starts a a new STA thread and run the specified function.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static Task<T> StartSTAThreadTask<T>(
	Func<T> func
)

Parameters

func
Type: SystemFuncT
The function.

Type Parameters

T
The return type

Return Value

Type: TaskT
An instance of the Task class.
Exceptions
ExceptionCondition
ArgumentNullExceptionfunc is null.
See Also