Click or drag to resize
ControlExtensionsInvokeOnUiThreadIfRequired Method
Version 63.0.0
Executes the Action asynchronously on the UI thread, does not block execution on the calling thread.

Namespace: CefSharp.WinForms.Internals
Assembly: CefSharp.WinForms (in CefSharp.WinForms.dll) Version: 63.0.0.0 (63.0.0.0)
Syntax
public static void InvokeOnUiThreadIfRequired(
	this Control control,
	Action action
)

Parameters

control
Type: System.Windows.FormsControl
the control for which the update is required
action
Type: SystemAction
action to be performed on the control

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Control. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also