Invoke Method (Action)
Collapse the table of content
Expand the table of content

ThreadHelper.Invoke Method (Action)

Calls an action on the UI thread.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

public void Invoke(
	Action action


Type: System.Action
The action to perform.

If the caller is already on the UI thread, then the call is made directly. Otherwise, the call is transferred onto the UI thread, and this thread blocks until the call returns. If the UI thread throws an exception, that exception is transferred and thrown again on this thread.

Community Additions

© 2015 Microsoft