Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Marshal::GetComInterfaceForObject Method

.NET Framework (current version)
 

Returns an interface pointer that represents an interface for an object.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticGetComInterfaceForObject(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.

System_CAPS_pubmethodSystem_CAPS_staticGetComInterfaceForObject(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.

System_CAPS_pubmethodSystem_CAPS_staticGetComInterfaceForObject<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.

Return to top
Show:
© 2017 Microsoft