[]
        
(Showing Draft Content)

C1.Util.DX.ComObject.QueryInterface

QueryInterface Method

QueryInterface(Guid, out IntPtr)

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

Declaration
[CLSCompliant(false)]
public virtual void QueryInterface(Guid guid, out IntPtr outPtr)
Parameters
Type Name Description
Guid guid

GUID query interface

IntPtr outPtr

output object associated with this GUID, IntPtr.Zero in interface is not supported

QueryInterface<T>()

Query this instance for a particular COM interface support.

Declaration
public virtual T QueryInterface<T>() where T : ComObject
Returns
Type Description
T

An instance of the queried interface

Type Parameters
Name Description
T

The type of the COM interface to query

QueryInterface<T>(object)

Queries a managed object for a particular COM interface support.

Declaration
public static T QueryInterface<T>(object comObject) where T : ComObject
Parameters
Type Name Description
object comObject

The managed COM object.

Returns
Type Description
T

An instance of the queried interface

Type Parameters
Name Description
T

The type of the COM interface to query