- item
Handle to the item having its supported transfer formats enumerated. Retrieve this parameter by either calling the WiaSession.GetRootItem method to get the device’s root item itself, or by enumerating the child items of the device through a call to EnumChildItems method.
- flags
- Reserved for future use, pass WiaEnumFormatsFlags.None.
Visual Basic (Declaration) | |
---|---|
Public Sub EnumFormats( _ ByVal item As Object, _ ByVal flags As WiaEnumFormatsFlags _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public void EnumFormats( object item, WiaEnumFormatsFlags flags ) |
C++/CLI | |
---|---|
public: void EnumFormats( Object^ item, WiaEnumFormatsFlags flags ) |
Parameters
- item
Handle to the item having its supported transfer formats enumerated. Retrieve this parameter by either calling the WiaSession.GetRootItem method to get the device’s root item itself, or by enumerating the child items of the device through a call to EnumChildItems method.
- flags
- Reserved for future use, pass WiaEnumFormatsFlags.None.
Visual Basic | Copy Code |
---|---|
Public Sub EnumFormatsExample(ByVal parent As IWin32Window) |
C# | Copy Code |
---|---|
public void EnumFormatsExample(IWin32Window parent) |
This function will enumerate all of the available WIA driver transfer formats for the specified item.
Each enumerated transfer format will be sent to the user through the WiaSession.EnumFormatsEvent event. Add this event when enumerating the device's transfer formats. To cancel the enumeration proces, add the WiaSession.EnumFormatsEvent event and then set the Cancel member of the WiaEnumFormatsEventArgs to true.
For more information, refer to Managing WIA Sources.
Target Platforms: Microsoft .NET Framework 3.0, Windows 2000, Windows XP, Windows Vista, Windows Server 2003 family, Windows Server 2008 family