Udostępnij za pośrednictwem


RemoteUserControl.IRemoteProxiedUserControl2.InvokeAsync Method

Definition

Invokes ExecuteAsync on an async command that is part of the DataContext of the control.

System.Threading.Tasks.Task<bool> IRemoteProxiedUserControl2.InvokeAsync (Microsoft.VisualStudio.RpcContracts.RemoteUI.ObjectId id, Microsoft.VisualStudio.RpcContracts.RemoteUI.MessagePackFragment parameter, System.Collections.Generic.IReadOnlyDictionary<string,string> clientContext, System.Threading.CancellationToken cancellationToken);
abstract member Microsoft.VisualStudio.RpcContracts.RemoteUI.IRemoteProxiedUserControl2.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>
override this.Microsoft.VisualStudio.RpcContracts.RemoteUI.IRemoteProxiedUserControl2.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>
Function InvokeAsync (id As ObjectId, parameter As MessagePackFragment, clientContext As IReadOnlyDictionary(Of String, String), cancellationToken As CancellationToken) As Task(Of Boolean) Implements IRemoteProxiedUserControl2.InvokeAsync

Parameters

id
ObjectId

The unique identifier of the async command instance.

parameter
MessagePackFragment

A value to pass as parameter when invoking ExecuteAsync.

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.

Implements

Applies to