Upraviť

Zdieľať cez


CreateObjectFlags Enum

Definition

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
CreateObjectFlags
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.

Applies to