Dynamsoft Home|Product Home

DisableSource Method

Description

Disable the source. If the source's user interface is displayed when the source is enabled, it will be closed. 

Syntax

ObjectName. DisableSource()

Parameters

None.

Return value

Boolean.

TRUE indicates success. FALSE indicates failure.

When an error occurs and IfThrowException property is TRUE, an exception will be thrown.

When FALSE is returned or an exception is thrown, check ErrorCode property and ErrorString property for error information.

Remarks

After DisableSource(), the Source is returned to State 4, where capability negotiation can again occur.

See also

EnableSource(), OpenSource(), TWAIN State Transition.