ImageGear .NET v25.2 - Updated
ImageGear.Web.Isis Library / ImageGear.Web.Isis Namespace / ImGearIsisScanJob class / destroy Method

In This Topic
    destroy Method
    In This Topic
    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