IRemoteProxiedUserControl2.InvokeAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Invokes ExecuteAsync on an async command that is part of the DataContext of the control.
public System.Threading.Tasks.Task<bool> InvokeAsync (Microsoft.VisualStudio.RpcContracts.RemoteUI.ObjectId id, Microsoft.VisualStudio.RpcContracts.RemoteUI.MessagePackFragment parameter, System.Collections.Generic.IReadOnlyDictionary<string,string> context, System.Threading.CancellationToken cancellationToken);
abstract member InvokeAsync : Microsoft.VisualStudio.RpcContracts.RemoteUI.ObjectId * Microsoft.VisualStudio.RpcContracts.RemoteUI.MessagePackFragment * System.Collections.Generic.IReadOnlyDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function InvokeAsync (id As ObjectId, parameter As MessagePackFragment, context As IReadOnlyDictionary(Of String, String), cancellationToken As CancellationToken) As Task(Of Boolean)
Parameters
- id
- ObjectId
The unique identifier of the async command instance.
- parameter
- MessagePackFragment
A value to pass as parameter when invoking ExecuteAsync.
- context
- IReadOnlyDictionary<String,String>
Captured client context properties.
- cancellationToken
- CancellationToken
Cancellation token for the async call.
Returns
Returns whether ExecuteAsync was invoked.
The Task is completed when the async execution of the command completes.