ASP.NET Ajax Javascript (Specification) | |
---|---|
function destroy( callback : function ) : ImGearIsisOperationStatus; |
ASP.NET Ajax Javascript (Usage) | |
---|---|
var resultVar = instanceOfImGearIsisScanJob.destroy(function); |
Parameters
- callback
- Callback which is called when the scan job is destroyed.
Return Value
ImGearIsisOperationStatus value.The JavaScript code below demonstrates how to destroy a scan job:
JavaScript | Copy Code |
---|---|
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.