Partager via


ThreadHelper.InvokeAsync Method

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

Syntax

'Declaration
Public Function InvokeAsync ( _
    executeAction As Action, _
    onRpcCallFailed As Func(Of Boolean) _
) As Task
public Task InvokeAsync(
    Action executeAction,
    Func<bool> onRpcCallFailed
)
public:
Task^ InvokeAsync(
    Action^ executeAction, 
    Func<bool>^ onRpcCallFailed
)
member InvokeAsync : 
        executeAction:Action * 
        onRpcCallFailed:Func<bool> -> Task
public function InvokeAsync(
    executeAction : Action, 
    onRpcCallFailed : Func<boolean>
) : Task

Parameters

  • executeAction
    Type: Action
  • onRpcCallFailed
    Type: Func<Boolean>

Return Value

Type: Task

.NET Framework Security

See Also

Reference

ThreadHelper Class

Microsoft.VisualStudio.Shell Namespace