ImageGear .NET
destroy Method

Destroys the scan job (cancels scanning, if needed) and releases all resources including all images.
Syntax
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

Example

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);
Remarks

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.

See Also

Reference

ImGearIsisScanJob class
ImGearIsisScanJob Members

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback