ImageGear for .NET
unload Method

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

Reference

ImGearIsisScanner class
ImGearIsisScanner Members

 

 


©2015. Accusoft Corporation. All Rights Reserved.

Send Feedback