ResourceCommandService.executeCommandAsync
Method
interface ResourceCommandService { // ... omitted for brevity executeCommandAsync( resource: string | IResource, commandName: string, arguments?: Dict<string,string>, cancellationToken?: cancellationToken): ExecuteCommandResult;}Signature
method
executeCommandAsync Executes a command for the specified resource.
executeCommandAsync( resource: string | IResource, commandName: string, arguments?: Dict<string,string>, cancellationToken?: cancellationToken): ExecuteCommandResultParameters
resourcestring | IResource The resource id or resource handle. A resource id can either exactly match the unique id of the resource or the displayed resource name if the resource name doesn't have duplicates.commandName stringThe command name.argumentsDict<string,string> optionalThe optional invocation arguments supplied to the command callback.cancellationToken cancellationToken optionalThe cancellation token.Returns
ExecuteCommandResult Defined on
This method is defined on the following type: