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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.