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
Aggregation | 4 | Defined when COM aggregation is involved (that is an inner instance supplied). |
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. |
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. |
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈