ImageGear.Web.Isis Namespace Client API Library > ImageGear.Web.Isis Namespace > ImGearIsisScanJob class : cancel Method |
ASP.NET Ajax Javascript (Specification) | |
---|---|
function cancel( callback : function ) : ImGearIsisOperationStatus; |
ASP.NET Ajax Javascript (Usage) | |
---|---|
var resultVar = instanceOfImGearIsisScanJob.cancel(function); |
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);
This is an asynchronous method.