ThreadHelper Members

Include Protected Members
Include Inherited Members

Provide a generic dispatcher helper ensure that a method is invoked on the Application's main thread.

The ThreadHelper type exposes the following members.


  Name Description
Protected method ThreadHelper



  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Protected method GetInvocationWrapper Derived classes must implement the GetInvocationWrapper method to implement a a disposable object that will wrap the called method. This may be null.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
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>)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a String that represents the current Object. (Inherited from Object.)



  Name Description
Public propertyStatic member Generic


See Also


ThreadHelper Class

Microsoft.VisualStudio.Shell Namespace