ImageGear for .NET
destroy Method
See Also  "Example" Send comments on this topic.
ImageGear.Web.Isis Namespace Client API Library > ImageGear.Web.Isis Namespace > ImGearIsisScanJob Class : destroy Method

callback
Callback which is called when the scan job is destroyed.

Glossary Item Box

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

ImGearIsisOperationStatus value.

Example

The JavaScript code below demonstrates how to destroy a scan job:

JavaScriptCopy Code
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

©2013. Accusoft Corporation. All Rights Reserved.