Compartilhar via


TasksOperationsExtensions.CommandAsync Method

Definition

The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. This method executes a command on a running task.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.DataMigration.Models.CommandProperties> CommandAsync (this Microsoft.Azure.Management.DataMigration.ITasksOperations operations, string groupName, string serviceName, string projectName, string taskName, Microsoft.Azure.Management.DataMigration.Models.CommandProperties parameters, System.Threading.CancellationToken cancellationToken = default);
static member CommandAsync : Microsoft.Azure.Management.DataMigration.ITasksOperations * string * string * string * string * Microsoft.Azure.Management.DataMigration.Models.CommandProperties * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.DataMigration.Models.CommandProperties>
<Extension()>
Public Function CommandAsync (operations As ITasksOperations, groupName As String, serviceName As String, projectName As String, taskName As String, parameters As CommandProperties, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CommandProperties)

Parameters

operations
ITasksOperations

The operations group for this extension method.

groupName
String

Name of the resource group

serviceName
String

Name of the service

projectName
String

Name of the project

taskName
String

Name of the Task

parameters
CommandProperties
cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to