Visual Basic (Declaration) | |
---|---|
Public Event EnumCapabilitiesEvent As EventHandler(Of WiaEnumCapabilitiesEventArgs) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As WiaSession Dim handler As EventHandler(Of WiaEnumCapabilitiesEventArgs) AddHandler instance.EnumCapabilitiesEvent, handler |
C# | |
---|---|
public event EventHandler<WiaEnumCapabilitiesEventArgs> EnumCapabilitiesEvent |
C++/CLI | |
---|---|
public: event EventHandler<WiaEnumCapabilitiesEventArgs^>^ EnumCapabilitiesEvent |
The event handler receives an argument of type WiaEnumCapabilitiesEventArgs containing data related to this event. The following WiaEnumCapabilitiesEventArgs properties provide information specific to this event.
Property | Description |
---|---|
CapabilitiesCount | Gets a count of the enumerated capabilities. |
Capability | Gets information about the enumerated capabilities of the selected WIA item. |
Stop | Enables or disables firing the WiaSession.EnumCapabilitiesEvent event. |
Refer to WiaSession.EnumCapabilities.Refer to WiaSession.EnumCapabilities.
This event will be called while enumerating the selected WIA source capabilities after calling the WiaSession.EnumCapabilities method to provide the user with information about each found capability and the found capabilities count and also gives the ability to abort the enumeration process.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7