Leadtools.Wia Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
SelectDevice Method
See Also 
Leadtools.Wia Namespace > WiaSession Class : SelectDevice Method



deviceId
String that contains the device ID. You can obtain this string by enumerating the available WIA devices on your machine.
deviceId
String that contains the device ID. You can obtain this string by enumerating the available WIA devices on your machine.
Selects the WIA device represented by the passed device ID.

Syntax

Visual Basic (Declaration) 
Public Sub SelectDevice( _
   ByVal deviceId As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As WiaSession
Dim deviceId As String
 
instance.SelectDevice(deviceId)
C# 
public void SelectDevice( 
   string deviceId
)
C++/CLI 
public:
void SelectDevice( 
   String^ deviceId
) 

Parameters

deviceId
String that contains the device ID. You can obtain this string by enumerating the available WIA devices on your machine.

Example

Remarks

Use this function when working with multiple WIA devices installed on a machine in order to select the WIA device without displaying the Select Device dialog. To do this, enumerate the WIA devices by calling the WiaSession.EnumDevices method. Then use it to keep a list of all received device IDs. Then call SelectDevice method using the device ID for the device to be selected.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows 2000, Windows XP, Windows Vista, Windows Server 2003 family, Windows Server 2008 family

See Also