ImageGear .NET - Updated
ImGearRecognition Constructor(Boolean)




ImageGear24.Recognition Assembly > ImageGear.Recognition Namespace > ImGearRecognition Class > ImGearRecognition Constructor : ImGearRecognition Constructor(Boolean)
Indicates whether the new instance creates its own unique collection of Recognition engine settings, or uses the shared global settings.
Initializes a new instance of the ImGearRecognition class and specifies whether it should create its own unique collection of Recognition settings or use the shared global settings.
Syntax
'Declaration
 
Public Function New( _
   ByVal createUnique As Boolean _
)
'Usage
 
Dim createUnique As Boolean
 
Dim instance As New ImGearRecognition(createUnique)
public ImGearRecognition( 
   bool createUnique
)
public: ImGearRecognition( 
   bool createUnique
)
public:
ImGearRecognition( 
   bool createUnique
)

Parameters

createUnique
Indicates whether the new instance creates its own unique collection of Recognition engine settings, or uses the shared global settings.
Remarks

The native Recognition engine is initialized during this constructor, unless it has already been initialized by a previously created instance, in which case a reference to the engine is obtained.

If createUnique is true, each instance created by this constructor will create and access its own unique collection of Recognition settings. If false, the new instance will use the global collection of Recognition settings that is shared by all other non-unique instances created in the same process.

An application should use exception handling to catch any exceptions thrown by this constructor.

If you are using Recognition in a web project, you cannot use this constructor as it is not suited to web applications. Instead, you need to specify the location of the dependencies in the Recognition constructor, ImGearRecognition Constructor(String,Boolean).

See Also

Reference

ImGearRecognition Class
ImGearRecognition Members
Overload List
ImGearRecognition Class