[]
        
(Showing Draft Content)

C1.Util.DX.ComObject

ComObject Class

Root IUnknown class to interop with COM object

Implements
Namespace: C1.Util.DX
Assembly: C1.Win.C1DX.4.8.dll
Syntax
public class ComObject : CppObject, IDisposable, IUnknown

Constructors

Name Description
ComObject(IntPtr)

Initializes a new instance of the ComObject class.

ComObject(object)

Initializes a new instance of the ComObject class from a IUnknown object.

Methods

Name Description
As<T>(IntPtr)

Queries a managed object for a particular COM interface support (This method is a shortcut to QueryInterface(Guid, out IntPtr))

As<T>(object)

Queries a managed object for a particular COM interface support (This method is a shortcut to QueryInterface(Guid, out IntPtr))

Dispose(bool)

Clean up any resources being used.

EqualsComObject<T>(T, T)

Compares 2 COM objects and return true if the native pointer is the same.

NativePointerUpdated(IntPtr)

Method called when the NativePointer is updated.

NativePointerUpdating()

Method called when NativePointer is going to be update.

QueryInterface(Guid, out IntPtr)

Query this instance for a particular COM GUID/interface support.

QueryInterfaceFrom<T>(T)

Query Interface for a particular interface support and attach to the given instance.

QueryInterfaceOrNull(Guid)

Query instance for a particular COM GUID/interface support.

QueryInterfaceOrNull<T>()

Query Interface for a particular interface support.

QueryInterfaceOrNull<T>(IntPtr)

Queries a managed object for a particular COM interface support.

QueryInterface<T>()

Query this instance for a particular COM interface support.

QueryInterface<T>(object)

Queries a managed object for a particular COM interface support.

Operators

Name Description
explicit operator ComObject(IntPtr)

Performs an explicit conversion from IntPtr to ComObject.