←Select platform

EnumChildItems Method

Summary

Enumerates all available child items for the root item specified in the

parentItem parameter.

Syntax

C#
VB
C++
public void EnumChildItems(  
   object parentItem 
) 
Public Sub EnumChildItems( _ 
   ByVal parentItem As Object _ 
) 
public: 
void EnumChildItems(  
   Object^ parentItem 
) 

Parameters

parentItem parameter.

Remarks

The WIA run-time system represents each WIA hardware device in a hierarchical tree of items. This function enables applications to enumerate the child items for the specified root item.

Pass a valid

parentItem parameter.

Each enumerated item will be sent to the user through the EnumItemsEvent event. Add this event when enumerating the device's child items. To cancel the enumeration proces, add the EnumItemsEvent event and then set the Cancel member of the WiaEnumItemsEventArgs to true.

For each received item through the EnumItemsEvent event call FreeItem method. Save the received items in a list or array and when the list is not needed anymore, loop through the list items and call the FreeItem method for each of them.

For more information, refer to Managing WIA Sources.

Example

For an example, refer to WiaSession.GetRootItem.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Wia Assembly
Click or drag to resize