ArcGIS Runtime SDK for WPF - Library Reference
CancelJobTaskAsync(String,CancellationToken) Method
See Also 
ESRI.ArcGIS.Client.Printing Namespace > PrintTask Class > CancelJobTaskAsync Method : CancelJobTaskAsync(String,CancellationToken) Method

jobId
The job id.
cancellationToken
The cancellation token for cancelling task.
Cancels the asynchronous GP job before it is completed.

Syntax

Visual Basic (Declaration) 
Public Overloads Function CancelJobTaskAsync( _
   ByVal jobId As String, _
   ByVal cancellationToken As CancellationToken _
) As Task(Of PrintTaskJobResult)
C# 
public Task<PrintTaskJobResult> CancelJobTaskAsync( 
   string jobId,
   CancellationToken cancellationToken
)

Parameters

jobId
The job id.
cancellationToken
The cancellation token for cancelling task.

Return Value

a Task object with PrintTaskJobResult upon successful completion. Otherwise, the Task.Exception is set.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.