CreateObjectFlags Enum
Definition
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 GetOrCreateObjectForComInstance(IntPtr, CreateObjectFlags) method.
This enumeration supports a bitwise combination of its member values.
public enum class CreateObjectFlags
[System.Flags]
public enum CreateObjectFlags
[<System.Flags>]
type CreateObjectFlags =
Public Enum CreateObjectFlags
- Inheritance
- Attributes
Fields
Name | Value | Description |
---|---|---|
None | 0 | Flag used to indicate no flags set. |
TrackerObject | 1 | Indicates that the supplied external COM object implements the IReferenceTracker. |
UniqueInstance | 2 | Indicates to ignore internal caching and always create a unique instance. |
Aggregation | 4 | Defined when COM aggregation is involved (that is an inner instance supplied). |
Unwrap | 8 | Check if the supplied instance is actually a wrapper and if so return the underlying managed object rather than creating a new wrapper. This matches the built-in RCW semantics for COM interop. |