Partager via


ThreadHelper.Invoke Method

Include Protected Members
Include Inherited Members

Overload List

  Name Description
Public method Invoke(Action) Call an action on the UI thread. 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 rethrown on this thread.
Public method Invoke<TResult>(Func<TResult>)

Top

See Also

Reference

ThreadHelper Class

ThreadHelper Members

Microsoft.VisualStudio.Shell Namespace