Editare

Partajați prin


StrategyBasedComWrappers Class

Definition

Important

This API is not CLS-compliant.

A ComWrappers-based type that uses customizable strategy objects to implement COM object wrappers and managed object wrappers exposed to COM.

public ref class StrategyBasedComWrappers : System::Runtime::InteropServices::ComWrappers
[System.CLSCompliant(false)]
public class StrategyBasedComWrappers : System.Runtime.InteropServices.ComWrappers
[<System.CLSCompliant(false)>]
type StrategyBasedComWrappers = class
    inherit ComWrappers
Public Class StrategyBasedComWrappers
Inherits ComWrappers
Inheritance
StrategyBasedComWrappers
Attributes

Constructors

StrategyBasedComWrappers()

Initializes a new instance of the ComWrappers class.

Properties

DefaultIUnknownInterfaceDetailsStrategy

Gets the default strategy to discover interface details about COM interfaces.

DefaultIUnknownStrategy

Gets the default strategy to use for calling IUnknown methods.

Methods

ComputeVtables(Object, CreateComInterfaceFlags, Int32)

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

CreateCacheStrategy()

Creates the caching strategy for a new COM object wrapper.

CreateDefaultCacheStrategy()

Creates the default strategy to use for caching COM objects.

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)
GetOrCreateComInterfaceForObject(Object, CreateComInterfaceFlags)

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

(Inherited from ComWrappers)
GetOrCreateInterfaceDetailsStrategy()

Gets or creates the interface details strategy for a new COM object wrapper.

GetOrCreateIUnknownStrategy()

Gets or creates the IUnknown strategy for a new COM object wrapper.

GetOrCreateObjectForComInstance(IntPtr, CreateObjectFlags)

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

(Inherited from ComWrappers)
GetOrRegisterObjectForComInstance(IntPtr, CreateObjectFlags, Object, IntPtr)

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

(Inherited from ComWrappers)
GetOrRegisterObjectForComInstance(IntPtr, CreateObjectFlags, Object)

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

(Inherited from ComWrappers)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
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)

Applies to