Table of Contents

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 = 0

A COM object is only acquired when first needed, then persists till ReleaseComObject() is called or the program exits. (Default)

Manual = 1

A COM object is only acquired when InitComObject() is called and released when ReleaseComObject() is called.

Wrap = 2

A 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.

See Also