Share via


JobOperationsExtensions.CreateOrUpdateAsync Method

Creates a new Job with a user-provided job id, or updates an existing job, replacing its definition with that specified.

Namespace: Microsoft.WindowsAzure.Scheduler
Assembly: Microsoft.WindowsAzure.Management.Scheduler (in Microsoft.WindowsAzure.Management.Scheduler.dll)

Usage

'Usage
Dim operations As IJobOperations
Dim jobId As String
Dim parameters As JobCreateOrUpdateParameters
Dim returnValue As Task(Of JobCreateOrUpdateResponse)

returnValue = JobOperationsExtensions.CreateOrUpdateAsync(operations, jobId, parameters)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function CreateOrUpdateAsync ( _
    operations As IJobOperations, _
    jobId As String, _
    parameters As JobCreateOrUpdateParameters _
) As Task(Of JobCreateOrUpdateResponse)
[ExtensionAttribute] 
public static Task<JobCreateOrUpdateResponse> CreateOrUpdateAsync (
    IJobOperations operations,
    string jobId,
    JobCreateOrUpdateParameters parameters
)
[ExtensionAttribute] 
public:
static Task<JobCreateOrUpdateResponse^>^ CreateOrUpdateAsync (
    IJobOperations^ operations, 
    String^ jobId, 
    JobCreateOrUpdateParameters^ parameters
)
/** @attribute ExtensionAttribute() */ 
public static Task<JobCreateOrUpdateResponse> CreateOrUpdateAsync (
    IJobOperations operations, 
    String jobId, 
    JobCreateOrUpdateParameters parameters
)
ExtensionAttribute 
public static function CreateOrUpdateAsync (
    operations : IJobOperations, 
    jobId : String, 
    parameters : JobCreateOrUpdateParameters
) : Task<JobCreateOrUpdateResponse>

Parameters

  • operations
    Reference to the Microsoft.WindowsAzure.Scheduler.IJobOperations.
  • jobId
    Required. Id of the job to create or update.
  • parameters
    Required. Parameters specifying the job definition for a CreateOrUpdate Job operation.

Return Value

The CreateOrUpdate Job operation response.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

JobOperationsExtensions Class
JobOperationsExtensions Members
Microsoft.WindowsAzure.Scheduler Namespace