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:
ShellBoost.Core.Utilities
Assembly:
ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax public static Task EnsureSTAThreadTask(
Action action
)
Parameters
- action
- Type: SystemAction
The action.
Return Value
Type:
TaskAn instance of the Task class.
Exceptions See Also