ImageGear .NET v25.2 - Updated
ImageGear.Web.Isis Library / ImageGear.Web.Isis Namespace / ImGearIsisScanner class / unload Method

In This Topic
    unload Method
    In This Topic
    Unloads a scanner without closing the active session.
    Syntax
    ASP.NET Ajax JavaScript (Specification) 
    function unload( 
       callback : function
    ) : ImGearIsisOperationStatus;
    ASP.NET Ajax JavaScript (Usage) 
    var resultVar = instanceOfImGearIsisScanner.unload(function);

    Parameters

    callback
    Callback which is called when the scanner is unloaded.

    Return Value

    Example

    The JavaScript code below demonstrates how to unload a scanner:

    function unloadScannerCallback(status) {
        if (status.get_status() !== ImageGear.Web.Isis.ImGearIsisStatus.Completed) {
            alert(status.get_statusMessage());
        }
    }
    
    scannerSession.get_scanner().unload(unloadScannerCallback);
    Remarks

    This is an asynchronous method.

    You can use this method to release the scanner for use by a different application when you no longer need to scan new images. You might do this if your application performs lengthy post-scanning operations that require the session to remain open.

    See Also