Marshal::GetComInterfaceForObject Method
Returns an interface pointer that represents an interface for an object.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | GetComInterfaceForObject(Object^, Type^) | Returns a pointer to an IUnknown interface that represents the specified interface on the specified object. Custom query interface access is enabled by default. |
![]() ![]() | GetComInterfaceForObject(Object^, Type^, CustomQueryInterfaceMode) | Returns a pointer to an IUnknown interface that represents the specified interface on the specified object. Custom query interface access is controlled by the specified customization mode. |
![]() ![]() | GetComInterfaceForObject<T, TInterface>(T) | [Supported in the .NET Framework 4.5.1 and later versions] Returns a pointer to an IUnknown interface that represents the specified interface on an object of the specified type. Custom query interface access is enabled by default. |

