Table of Contents

Class SafeComObject

Namespace
PaintDotNet.Interop
Assembly
PaintDotNet.Windows.dll

Safely encapsulates a reference to a COM object.

public sealed class SafeComObject : SafeHandleZeroOrMinusOneIsInvalid, IDisposable
Inheritance
SafeComObject
Implements
Inherited Members
Extension Methods

Constructors

SafeComObject()

Creates a SafeComObject.

SafeComObject(nint, bool)

Initializes a new instance of the SafeComObject class from the specified COM object, indicating whether to call Release() on the object during the finalization phase.

SafeComObject(void*, bool)

Initializes a new instance of the SafeComObject class from the specified COM object, indicating whether to call Release() on the object during the finalization phase.

Methods

ReleaseHandle()