VintaSoft Twain .NET SDK 15.4: Documentation for Web developer
Vintasoft.Twain Namespace / WebAcquiredImageCollectionJS type / clearAsync Property
Syntax Exceptions Remarks BrowserCompatibility SeeAlso
In This Topic
clearAsync Method
In This Topic
Sends an asynchronous request to clear this image collection.
Syntax
var instance = new Vintasoft.Twain.WebAcquiredImageCollectionJS(twainDeviceManager);

var value; // Type: any

// Parameters
var successFunc; // Type: function
var errorFunc; // Type: function

value = instance.clearAsync(successFunc, errorFunc);

Parameters

successFunc
A function that will be executed if request is executed successfully. Function prototype: "successFunc(imageCollection)", where 'imageCollection' parameter is an instance of WebAcquiredImageCollectionJS class.
errorFunc
A function that will be executed if request is failed. Function prototype: "errorFunc(imageCollection, errorMessage)", where 'imageCollection' parameter is an instance of WebAcquiredImageJS class, 'errorMessage' parameter is string that describes error.
Exceptions
ExceptionDescription
Thrown if image collection is not cleared.
Remarks

This function sends an asynchronous request to clear this image collection. If you want to use synchronous request instead of asynchronous request, please use WebAcquiredImageCollectionJS.clear function.

Browser Compatibility
9
See Also