DataSourceManagerOpenSource Method (String)Terminal Works - TwainScanning.Net Library
Opens device by name.

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

public DataSource OpenSource(
	string deviceName
)

Parameters

deviceName
Type: SystemString
The name.

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