Compartir a través de


ServiceProjectTaskResource.CommandAsync Método

Definición

El recurso tasks es un recurso anidado de solo proxy que representa el trabajo realizado por una instancia de DMS. Este método ejecuta un comando en una tarea en ejecución.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}/command
  • IdTasks_Command de operaciones
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 se ejecuta.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

commandProperties es null.

Se aplica a