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



category
The WIA 2.0 item category ID. For a list of available categories refer to WiaCategories.
category
The WIA 2.0 item category ID. For a list of available categories refer to WiaCategories.
Retrieves the relevant Guid structure for the WIA 2.0 item's category.

Syntax

Visual Basic (Declaration) 
Public Shared Sub GetCategoryGuid( _
   ByVal category As WiaCategories _
) 
Visual Basic (Usage)Copy Code
Dim category As WiaCategories
 
WiaSession.GetCategoryGuid(category)
C# 
public static void GetCategoryGuid( 
   WiaCategories category
)
C++/CLI 
public:
static void GetCategoryGuid( 
   WiaCategories category
) 

Parameters

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

Example

For an example, refer to WiaSession.GetPropertyGuid.

Remarks

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

Requirements

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

See Also