Redigeeri

Jagamisviis:


CreateComInterfaceFlags Enum

Definition

Specifies flags for the GetOrCreateComInterfaceForObject(Object, CreateComInterfaceFlags) method.

This enumeration supports a bitwise combination of its member values.

public enum class CreateComInterfaceFlags
[System.Flags]
public enum CreateComInterfaceFlags
[<System.Flags>]
type CreateComInterfaceFlags = 
Public Enum CreateComInterfaceFlags
Inheritance
CreateComInterfaceFlags
Attributes

Fields

Name Value Description
None 0

Flag used to indicate no flags set.

CallerDefinedIUnknown 1

The caller will provide an IUnknown Vtable.

This flag is useful in scenarios when the caller has no need to rely on an IUnknown instance that's used when it's not possible to run managed code (that is, during a garbage collection). This is common in traditional COM scenarios, but scenarios where Reference Tracker hosting calls the IUnknown API during a garbage collection are possible.

TrackerSupport 2

Flag used to indicate the COM interface should implement IReferenceTrackerTarget.

When this flag is passed, the resulting COM interface will have an internal implementation of IUnknown, therefore, none should be supplied by the caller.

Applies to