Edit

Share via


ComWrappers Class

Definition

Important

This API is not CLS-compliant.

Class for managing wrappers of COM IUnknown types.

public ref class ComWrappers abstract
[System.CLSCompliant(false)]
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public abstract class ComWrappers
[System.CLSCompliant(false)]
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public abstract class ComWrappers
[<System.CLSCompliant(false)>]
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
type ComWrappers = class
[<System.CLSCompliant(false)>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
type ComWrappers = class
Public MustInherit Class ComWrappers
Inheritance
ComWrappers
Derived
Attributes

Remarks

For more information about this API, see Supplemental API remarks for ComWrappers.

Constructors

ComWrappers()

Instance constructor.

Methods

ComputeVtables(Object, CreateComInterfaceFlags, Int32)

Computes the desired Vtable for obj, respecting the values of flags.

CreateObject(IntPtr, CreateObjectFlags)

Creates a managed object for the object that externalComObject points to, respecting the values of flags.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetIUnknownImpl(IntPtr, IntPtr, IntPtr)

Gets the runtime-provided IUnknown implementation.

GetOrCreateComInterfaceForObject(Object, CreateComInterfaceFlags)

Creates a COM representation of the supplied object that can be passed to a non-managed environment.

GetOrCreateObjectForComInstance(IntPtr, CreateObjectFlags)

Gets the currently registered managed object or creates a new managed object and registers it.

GetOrRegisterObjectForComInstance(IntPtr, CreateObjectFlags, Object)

Gets the currently registered managed object or uses the supplied managed object and registers it.

GetOrRegisterObjectForComInstance(IntPtr, CreateObjectFlags, Object, IntPtr)

Get the currently registered managed object or uses the supplied managed object and registers it.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
RegisterForMarshalling(ComWrappers)

Registers a ComWrappers instance to be used as the global instance for marshalling in the runtime.

RegisterForTrackerSupport(ComWrappers)

Registers a ComWrappers instance to be used as the global instance for reference tracker support.

ReleaseObjects(IEnumerable)

Releases a collection of objects outside of the normal object or COM interface lifetime.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
TryGetComInstance(Object, IntPtr)

Determines if the specified managed object is a ComWrappers-created managed wrapper and if so, returns the wrapped unmanaged pointer.

TryGetObject(IntPtr, Object)

Determines if the specified COM object is a ComWrappers-created unmanaged wrapper and if so, returns the wrapped managed object.

Applies to