ImageGear.Web.Isis Library > ImageGear.Web.Isis Namespace > ImGearIsisScanJob class : destroy Method |
ASP.NET Ajax Javascript (Specification) | |
---|---|
function destroy( callback : function ) : ImGearIsisOperationStatus; |
ASP.NET Ajax Javascript (Usage) | |
---|---|
var resultVar = instanceOfImGearIsisScanJob.destroy(function); |
The JavaScript code below demonstrates how to destroy a scan job:
function destroyCallback(status) { if (status.get_status() !== ImageGear.Web.Isis.ImGearIsisStatus.Completed) { alert(status.get_statusMessage()); } } scanJob.destroy(destroyCallback);
This is an asynchronous method.
A scan job does not end automatically when scanning is complete. To end the scan job but continue working in the same session, you must specifically call the destroy method.