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



item
The item that was retrieved through the WiaSession.EnumItemsEvent that gets fired after a call to the EnumChildItems method to enumerate the device's child items.
item
The item that was retrieved through the WiaSession.EnumItemsEvent that gets fired after a call to the EnumChildItems method to enumerate the device's child items.
Frees the items enumerated by the EnumChildItems method.

Syntax

Visual Basic (Declaration) 
Public Sub FreeItem( _
   ByVal item As Object _
) 
Visual Basic (Usage)Copy Code
Dim instance As WiaSession
Dim item As Object
 
instance.FreeItem(item)
C# 
public void FreeItem( 
   object item
)
C++/CLI 
public:
void FreeItem( 
   Object^ item
) 

Parameters

item
The item that was retrieved through the WiaSession.EnumItemsEvent that gets fired after a call to the EnumChildItems method to enumerate the device's child items.

Example

For an example, refer to WiaSession.GetRootItem.

Remarks

Call this method for each item received through the WiaSession.EnumDevicesEvent event after calling the EnumChildItems method.

Requirements

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

See Also