Share via


JobOperationsExtensions.CreateAsync Method

Creates a new Job, allowing the service to generate a job id. Use CreateOrUpdate if a user-chosen job id is required.

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

Usage

'Usage
Dim operations As IJobOperations
Dim parameters As JobCreateParameters
Dim returnValue As Task(Of JobCreateResponse)

returnValue = JobOperationsExtensions.CreateAsync(operations, parameters)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function CreateAsync ( _
    operations As IJobOperations, _
    parameters As JobCreateParameters _
) As Task(Of JobCreateResponse)
[ExtensionAttribute] 
public static Task<JobCreateResponse> CreateAsync (
    IJobOperations operations,
    JobCreateParameters parameters
)
[ExtensionAttribute] 
public:
static Task<JobCreateResponse^>^ CreateAsync (
    IJobOperations^ operations, 
    JobCreateParameters^ parameters
)
/** @attribute ExtensionAttribute() */ 
public static Task<JobCreateResponse> CreateAsync (
    IJobOperations operations, 
    JobCreateParameters parameters
)
ExtensionAttribute 
public static function CreateAsync (
    operations : IJobOperations, 
    parameters : JobCreateParameters
) : Task<JobCreateResponse>

Parameters

  • operations
    Reference to the Microsoft.WindowsAzure.Scheduler.IJobOperations.
  • parameters
    Required. Parameters specifying the job definition for a Create Job operation.

Return Value

The Create 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