Visual Basic (Declaration) | |
---|---|
Public Overloads Function CancelJobTaskAsync( _ ByVal jobId As String, _ ByVal cancellationToken As CancellationToken _ ) As Task(Of JobInfo) |
C# | |
---|---|
public Task<JobInfo> CancelJobTaskAsync( string jobId, CancellationToken cancellationToken ) |
Parameters
- jobId
- The job id.
- cancellationToken
- The cancellation token for cancelling task.
Return Value
a Task object with JobInfo upon successful completion. Otherwise, the Task.Exception is set.Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8