CollectionDef Flags Property

Meta Data Services Programming

Meta Data Services Programming

CollectionDef Flags Property

The CollectionDef object exposes two separate Flags properties. One of these properties is exposed by the default interface ICollectionDef, and the other is exposed by the IInterfaceMember interface. The Flags property of both interfaces is described here.

The default ICollectionDef Flags property determines:

  • Whether the collection type permits the naming of destination objects, and if so, whether those names are case-sensitive, and required to be unique.

  • Whether the collection type permits the explicit sequencing of items in the collection.

  • What happens to related objects when objects or relationships in the collection are deleted.

  • Whether origin collections of this type are automatically copied to new object versions by the CreateVersion method.

  • Whether the MergeVersion method combines origin collections of this type as a whole, or item by item.

  • Whether the FreezeVersion method requires that destination object versions of relationships of this type be frozen before the attendant origin object versions can be frozen.

The IInterfaceDef Flags property is a flag that specifies whether the interface member should be visible to Automation queries. For more information about flag values and their specific purposes, see InterfaceMemberFlags Enumeration.

Syntax

object.Flags=(integer)

The Flags property syntax has the following parts.

Part Description
object An object expression that evaluates to a CollectionDef object, for the default Flags property.

-or-

An object expression that evaluates to an object that exposes IInterfaceMember as the default interface, for the alternate Flags property.

integer Flag values are bit flags, and may be combined to set multiple options. For more information about flag values and their specific purposes, see CollectionDefFlags Enumeration.

Remarks

For more information about accessing a member of an interface that is not the default interface, see Accessing Automation Object Members.

See Also

CollectionDef Object

IInterfaceMember Interface