ThreadHelper Methods

 

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

NameDescription
System_CAPS_pubmethodBeginInvoke(Action)

Schedules an action for execution on the UI thread asynchronously.

System_CAPS_pubmethodBeginInvoke(DispatcherPriority, Action)

Schedules an action for execution on the UI thread asynchronously.

System_CAPS_pubmethodSystem_CAPS_staticCheckAccess()

Determines whether the call is being made on the UI thread.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_protmethodGetInvocationWrapper()

Gets the invocation wrapper.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodInvoke(Action)

Calls an action on the UI thread, re-entering (if necessary) any code already executing on the UI thread.

System_CAPS_pubmethodInvoke<TResult>(Func<TResult>)

Evaluate a function on the UI thread.

System_CAPS_pubmethodInvokeAsync(Action, Func<Boolean>)

Makes the RPC call to invoke the action like Invoke method but on the background thread. Since it is on the background thread, it doesn't block until the RPC call is served. If the RPC call fails, it retries until the onRpcCallFailed returns true. This method is also different from the BeginInvoke method, which uses the UI thread dispatcher, and it may not be in a state to process the request immediately (for example, it can be in a pumping wait).

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticThrowIfNotOnUIThread(String)

Determines whether the call is being made on the UI thread, and throws COMException(RPC_E_WRONG_THREAD) if it is not.

System_CAPS_pubmethodSystem_CAPS_staticThrowIfOnUIThread(String)

Determines whether the call is being made on the UI thread ,and throws COMException(RPC_E_WRONG_THREAD) if it is.

System_CAPS_pubmethodToString()

(Inherited from Object.)

Return to top
Show: