Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Marshal.GetComInterfaceForObject Method

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member 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.
Public method Static member 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.
Public method Static member 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.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.