Click or drag to resize

TaskUtilitiesEnsureSTAThreadTask Method (Action)

If the current thread is STA, run the specified action, otherwise start an STA thread and run the action in this new thread.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static Task EnsureSTAThreadTask(
	Action action
)

Parameters

action
Type: SystemAction
The action.

Return Value

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