ImageGear for .NET
cancel Method

Cancels the scanning operation.
Syntax
ASP.NET Ajax Javascript (Specification) 
function cancel( 
   callback : function
) : ImGearIsisOperationStatus;
ASP.NET Ajax Javascript (Usage) 
var resultVar = instanceOfImGearIsisScanJob.cancel(function);

Parameters

callback
Callback which is called when the scan job is cancelled.

Return Value

Example

The JavaScript code below demonstrates how to cancel a scan job:

function cancelCallback(status) {
    if (status.get_status() !== ImageGear.Web.Isis.ImGearIsisStatus.Completed) {
        alert(status.get_statusMessage());
    }
}

scanJob.cancel(cancelCallback);
Remarks

This is an asynchronous method.

See Also

Reference

ImGearIsisScanJob class
ImGearIsisScanJob Members

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback