ImageGear .NET v25.2 - Updated
cancel Method

ImageGear.Web.Isis Library > ImageGear.Web.Isis Namespace > ImGearIsisScanJob class : 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

Is this page helpful?
Yes No
Thanks for your feedback.