Share via


IJobOperations.GetAsync Method

Get the definition and status of a job.

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

Usage

'Usage
Dim instance As IJobOperations
Dim jobId As String
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of JobGetResponse)

returnValue = instance.GetAsync(jobId, cancellationToken)

Syntax

'Declaration
Function GetAsync ( _
    jobId As String, _
    cancellationToken As CancellationToken _
) As Task(Of JobGetResponse)
Task<JobGetResponse> GetAsync (
    string jobId,
    CancellationToken cancellationToken
)
Task<JobGetResponse^>^ GetAsync (
    String^ jobId, 
    CancellationToken cancellationToken
)
Task<JobGetResponse> GetAsync (
    String jobId, 
    CancellationToken cancellationToken
)
function GetAsync (
    jobId : String, 
    cancellationToken : CancellationToken
) : Task<JobGetResponse>

Parameters

  • jobId
    Id of the job to get.
  • cancellationToken
    Cancellation token.

Return Value

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

IJobOperations Interface
IJobOperations Members
Microsoft.WindowsAzure.Scheduler Namespace