LEADTOOLS WIA (Leadtools.Wia assembly)
LEAD Technologies, Inc

GetCategoryGuid Method






The WIA 2.0 item category ID. For a list of available categories refer to WiaCategories.
Retrieves the relevant System.Guid structure for the WIA 2.0 item's category.
Syntax
public static Guid GetCategoryGuid( 
   WiaCategories category
)
'Declaration
 
Public Shared Function GetCategoryGuid( _
   ByVal category As WiaCategories _
) As Guid
'Usage
 
Dim category As WiaCategories
Dim value As Guid
 
value = WiaSession.GetCategoryGuid(category)
public static Guid GetCategoryGuid( 
   WiaCategories category
)
 function Leadtools.Wia.WiaSession.GetCategoryGuid( 
   category 
)
public:
static Guid GetCategoryGuid( 
   WiaCategories category
) 

Parameters

category
The WIA 2.0 item category ID. For a list of available categories refer to WiaCategories.

Return Value

The relevant System.Guid value for the category Id passed as parameter for the GetCategoryGuid method.
Remarks

This method is only used when using WIA version 2.0. Each WIA 2.0 item has a category represented as System.Guid structure that can be retrieved by calling the GetPropertyGuid method, and passing WiaPropertyId.ItemCategory for the propertyId parameter of this method. To determine the relevant category for returned System.Guid, call the GetCategoryGuid method for each available category in the WiaCategories enumeration and then compare the returned System.Guid value with this one.

Example
For an example, refer to WiaSession.GetPropertyGuid.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

WiaSession Class
WiaSession Members
Startup Method
Shutdown Method
GetRootItem Method
GetPropertyGuid Method

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.