LEADTOOLS WIA (Leadtools.Wia assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
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 System.Guid structure for the WIA 2.0 item's category.

Syntax

Visual Basic (Declaration) 
Public Shared Function GetCategoryGuid( _
   ByVal category As WiaCategories _
) As Guid
Visual Basic (Usage)Copy Code
Dim category As WiaCategories
Dim value As Guid
 
value = WiaSession.GetCategoryGuid(category)
C# 
public static Guid GetCategoryGuid( 
   WiaCategories category
)
C++/CLI 
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 WiaSession.GetCategoryGuid method.

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 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 WiaSession.GetCategoryGuid method for each available category in the WiaCategories enumeration and then compare the returned System.Guid value with this one.

Requirements

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

See Also