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

callback
Callback which is called when the scanner is unloaded.

Glossary Item Box

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

ImGearIsisOperationStatus value.

Example

The JavaScript code below demonstrates how to unload a scanner:

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

©2013. Accusoft Corporation. All Rights Reserved.