JobOperations.GetJobAsync Method (String, DetailLevel, IEnumerable<BatchClientBehavior>)
Gets the specified CloudJob.
Namespace: Microsoft.Azure.Batch
Assembly: Microsoft.Azure.Batch (in Microsoft.Azure.Batch.dll)
Syntax
public Task<CloudJob> GetJobAsync(
string jobId,
DetailLevel detailLevel = null,
IEnumerable<BatchClientBehavior> additionalBehaviors = null
)
public:
Task<CloudJob^>^ GetJobAsync(
String^ jobId,
DetailLevel^ detailLevel = null,
IEnumerable<BatchClientBehavior^>^ additionalBehaviors = null
)
member GetJobAsync :
jobId:string *
detailLevel:DetailLevel = null *
additionalBehaviors:IEnumerable<BatchClientBehavior> = null -> Task<CloudJob>
Public Function GetJobAsync (
jobId As String,
detailLevel As DetailLevel,
additionalBehaviors As IEnumerable(Of BatchClientBehavior)
) As Task(Of CloudJob)
Parameters
jobId
Type: System.StringThe id of the job to get.
detailLevel
Type: Microsoft.Azure.Batch.DetailLevelA DetailLevel used for controlling which properties are retrieved from the service.
additionalBehaviors
Type: System.Collections.Generic.IEnumerable<BatchClientBehavior>A collection of BatchClientBehavior instances that are applied to the Batch service request after the CustomBehaviors and detailLevel.
Return Value
Type: System.Threading.Tasks.Task<CloudJob>
A CloudJob containing information about the specified Azure Batch job.
Remarks
The get job operation runs asynchronously.
See Also
JobOperations Class
Microsoft.Azure.Batch Namespace
Return to top