Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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. |
Product | Versions |
---|---|
.NET | 5, 6, 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in