Click or drag to resize

TwainControllerGetTwainDevices Method

Returns an array of TwainIdentity classes; one for each Twain compatible device found on the system.

Namespace:  Atalasoft.Twain
Assembly:  Atalasoft.DotTwain (in Atalasoft.DotTwain.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public TwainIdentity[] GetTwainDevices()

Return Value

Type: TwainIdentity
An array of devices found on the system.
Examples
GetTwainDevicesCS (C#)
TwainController twain = new TwainController(this);
twain.OpenSourceManager();
TwainIdentity[] devs = twain.GetTwainDevices();

foreach (TwainIdentity id in devs)
{
    if (id.ProductName.StartsWith("Fujitsu"))
    {
        // .....
    }
}

// .......

twain.CloseSourceManager();
twain.Dispose();
GetTwainDevicesVB (Visual Basic)
Dim twain As TwainController = New TwainController(Me) 
twain.OpenSourceManager()
Dim devs() As TwainIdentity = twain.GetTwainDevices() 

Dim id As TwainIdentity
For Each (id In devs)
{
    If id.ProductName.StartsWith("Fujitsu") Then
        ' .....
    End If
}

' .......

twain.CloseSourceManager()
twain.Dispose()
See Also