TwainControllerOpenSource Method (TwainIdentity) |
Opens a connection to the device passed in.
Namespace:
Atalasoft.Twain
Assembly:
Atalasoft.DotTwain (in Atalasoft.DotTwain.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public TwainReturnCode OpenSource(
TwainIdentity deviceIdentity
)
Public Function OpenSource (
deviceIdentity As TwainIdentity
) As TwainReturnCode
Parameters
- deviceIdentity
- Type: Atalasoft.TwainTwainIdentity
The device to open.
Return Value
Type:
TwainReturnCode The return code from the source manager.
Exceptions Exception | Condition |
---|
| Thrown if the current state is not SourceManagerOpen. |
| Thrown if the deviceIdentity parameter is null. |
Remarks CloseSource must be called when you are finished with the device.
See Also