Enum ComObjectMode
- Namespace
- LinqToOneNote
- Assembly
- LinqToOneNote.dll
Defines the mode of COM object handling when using the methods in OneNote.
public enum ComObjectMode
Fields
Lazy = 0A COM object is only acquired when first needed, then persists till ReleaseComObject() is called or the program exits. (Default)
Manual = 1A COM object is only acquired when InitComObject() is called and released when ReleaseComObject() is called.
Wrap = 2A COM object is acquired when a method that requires it is called and released immediately after the method completes.
Equivalent to calling InitComObject() before a method and ReleaseComObject() after the method, when ComObjectMode is set to Manual.