Class DXComObject
A COM object.
Inheritance
DXComObject
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.DXCommon
Assembly: JeremyAnsel.DirectX.DXCommon.dll
Syntax
[SecurityCritical]
public class DXComObject : IDisposable
Constructors
| Edit this page View SourceDXComObject(nint)
Initializes a new instance of the DXComObject class.
Declaration
public DXComObject(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr | A COM pointer. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
Properties
| Edit this page View SourceHandle
Gets an handle representing the COM object interface.
Declaration
public nint Handle { get; }
Property Value
| Type | Description |
|---|---|
| nint |
Methods
| Edit this page View SourceAddRef()
Add reference to COM object.
Declaration
public int AddRef()
Returns
| Type | Description |
|---|---|
| int | The reference count. |
Dispose()
Dispose the COM object.
Declaration
public void Dispose()
QueryInterface(in Guid)
Query a COM interface.
Declaration
public nint QueryInterface(in Guid iid)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | iid | The GUID identifier of the interface. |
Returns
| Type | Description |
|---|---|
| nint | The interface pointer. |
Release()
Release a COM object.
Declaration
public int Release()
Returns
| Type | Description |
|---|---|
| int | The reference count. |