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

callback
Callback which is called when the session is destroyed.

Glossary Item Box

Destroys the current session. Terminates all pending scan jobs.

Syntax

ASP.NET Ajax Javascript (Specification) 
function destroy( 
   callback : function
) : ImGearIsisOperationStatus;
ASP.NET Ajax Javascript (Usage) 
var resultVar = instanceOfImGearIsisScannerSession.destroy(function);

Parameters

callback
Callback which is called when the session is destroyed.

Return Value

ImGearIsisOperationStatus value.

Example

The JavaScript code below demonstrates how to destroy a scanner session:

JavaScriptCopy Code
function destroyCallback(status) {
    if (status.get_status() !== ImageGear.Web.Isis.ImGearIsisStatus.Completed) {
        alert(status.get_statusMessage());
    }
}

scannerSession.destroy(destroyCallback);

Remarks

This is an asynchronous method.

See Also

©2013. Accusoft Corporation. All Rights Reserved.