DataSourceManagerOpenSource Method (TwIdentity)Terminal Works - TwainScanning.Net Library
Opens source that is represented with TwIdentity.

Namespace: TwainScanning
Assembly: TwainScanning (in TwainScanning.dll) Version: 1.3.4.0 (1.3.4.0)
Syntax

public DataSource OpenSource(
	TwIdentity device
)

Parameters

device
Type: TwainScanning.NativeStructsTwIdentity
The device.

Return Value

Type: DataSource
Newly created DataSource that reperesents openend source.
Exceptions

ExceptionCondition
BadRcTwainException
Remarks

Creates DataSource object of selected device. If it fails to open it will throw. Reasons to fail may be that specified source is unaccessible or it is already opened.
See Also

Reference