Partilhar via


ServiceProjectTaskResource.CommandAsync Método

Definição

O recurso de tarefas é um recurso aninhado somente proxy que representa o trabalho executado por uma instância do DMS. Esse método executa um comando em uma tarefa em execução.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}/command
  • IdTasks_Command de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataMigration.Models.CommandProperties>> CommandAsync (Azure.ResourceManager.DataMigration.Models.CommandProperties commandProperties, System.Threading.CancellationToken cancellationToken = default);
abstract member CommandAsync : Azure.ResourceManager.DataMigration.Models.CommandProperties * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataMigration.Models.CommandProperties>>
override this.CommandAsync : Azure.ResourceManager.DataMigration.Models.CommandProperties * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataMigration.Models.CommandProperties>>
Public Overridable Function CommandAsync (commandProperties As CommandProperties, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CommandProperties))

Parâmetros

commandProperties
CommandProperties

Comando que será executado.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

commandProperties é nulo.

Aplica-se a