Visual Basic (Declaration) | |
---|---|
Overridable ReadOnly Property DocumentWriterInstance As DocumentWriter |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
virtual DocumentWriter DocumentWriterInstance {get;} |
C++/CLI | |
---|---|
virtual property DocumentWriter DocumentWriterInstance { DocumentWriter get(); } |
Return Value
The DocumentWriter object being used inside this IOcrEngine.You can pass an instance of an already initialized DocumentWriter object to the Startup method. This DocumentWriter objects will then be used internal by the engine when saving OCR documents to disk or memory. Otherwise, when passing null (Nothing in Visual Basic), the IOcrEngine will create and use its own version of DocumentWriter during the startup procedure.
The internal DocumentWriter object will be disposed of by the engine automatically when Shutdown or Dispose is called. If you passed your own instance of DocumentWriter, then the engine will not dispose it and you can continue to use it as normal after the engine instance has been disposed. When passing your own instance of DocumentWriter, make sure this instance stays valid as long as the engine is started.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family