GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / TwainCloseSource Method





In This Topic
TwainCloseSource Method (GdPictureImaging)
In This Topic
Closes the open Data Source, if any. If the source is enabled, disables it first.
Syntax
'Declaration
 
Public Function TwainCloseSource() As Boolean
public bool TwainCloseSource()
public function TwainCloseSource(): Boolean; 
public function TwainCloseSource() : boolean;
public: bool TwainCloseSource(); 
public:
bool TwainCloseSource(); 

Return Value

True if success, else False. If there is not an open source, does nothing and returns TRUE.
Remarks
This method should be called only if the TWAIN state is 4 (TWAIN_SOURCE_OPEN) or 5 (TWAIN_SOURCE_ENABLED). If success, the TWAIN state must be <= 3 (TWAIN_SM_OPEN). To get the TWAIN state, use the TwainGetState() method.
See Also