LEADTOOLS WIA (Leadtools.Wia assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
EnumDevicesEvent Event
See Also 
Leadtools.Wia Namespace > WiaSession Class : EnumDevicesEvent Event



Occurs for each found WIA device after calling the WiaSession.EnumDevices method.

Syntax

Visual Basic (Declaration) 
Public Event EnumDevicesEvent As EventHandler(Of WiaEnumDevicesEventArgs)
Visual Basic (Usage)Copy Code
Dim instance As WiaSession
Dim handler As EventHandler(Of WiaEnumDevicesEventArgs)
 
AddHandler instance.EnumDevicesEvent, handler
C# 
public event EventHandler<WiaEnumDevicesEventArgs> EnumDevicesEvent
C++/CLI 
public:
event EventHandler<WiaEnumDevicesEventArgs^>^ EnumDevicesEvent

Event Data

The event handler receives an argument of type WiaEnumDevicesEventArgs containing data related to this event. The following WiaEnumDevicesEventArgs properties provide information specific to this event.

PropertyDescription
DeviceDesc Gets the description of the device being enumerated.
DeviceID Gets the ID string for the enumerated device.
DeviceName Gets the name of the enumerated device.
Stop Enables or disables firing the WiaSession.EnumDevicesEvent event.

Example

Remarks

This event will be called while enumerating the available WIA devices after calling the WiaSession.EnumDevices method to provide the user with information about each found device and also gives the ability to abort the enumeration process.

Requirements

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

See Also