Click or drag to resize

DeviceGetConditionCode Method

Returns the condition code from the last Twain operation. This can provide more information about a failure when getting or setting a Device property.

Namespace:  Atalasoft.Twain
Assembly:  Atalasoft.DotTwain (in Atalasoft.DotTwain.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public TwainConditionCode GetConditionCode()

Return Value

Type: TwainConditionCode
A condition code providing more information about the last Twain operation.
Exceptions
ExceptionCondition
Thrown if the source manager is not open.
Remarks
This method is useful if the LastReturnCode property is not TWRC_SUCCESS after getting or setting a property.
See Also