共用方式為


JobsOperationsExtensions.CreateOrUpdateAsync Method

Definition

Creates or updates a job.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Sql.Models.Job> CreateOrUpdateAsync (this Microsoft.Azure.Management.Sql.IJobsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, Microsoft.Azure.Management.Sql.Models.Job parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Sql.IJobsOperations * string * string * string * string * Microsoft.Azure.Management.Sql.Models.Job * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Sql.Models.Job>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IJobsOperations, resourceGroupName As String, serverName As String, jobAgentName As String, jobName As String, parameters As Job, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Job)

Parameters

operations
IJobsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

serverName
String

The name of the server.

jobAgentName
String

The name of the job agent.

jobName
String

The name of the job to get.

parameters
Job

The requested job state.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to