다음을 통해 공유


ThreadHelper.Invoke Method (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.

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

Syntax

‘선언
Public Sub Invoke ( _
    action As Action _
)
‘사용 방법
Dim instance As ThreadHelper
Dim action As Action

instance.Invoke(action)
public void Invoke(
    Action action
)
public:
void Invoke(
    Action^ action
)
member Invoke : 
        action:Action -> unit 
public function Invoke(
    action : Action
)

Parameters

.NET Framework Security

See Also

Reference

ThreadHelper Class

ThreadHelper Members

Invoke Overload

Microsoft.VisualStudio.Shell Namespace