ReposTypeLib Prefix Property
This property stores a prefix for the information model that distinguishes it from all other information models in a repository.
This property is not attached to the default interface for the ReposTypeLib Automation object; it is attached to the IReposTypeLib2 interface. For more information about accessing a member of an interface that is not the default interface, see Accessing Automation Object Members.
Syntax
object.prefix=(string)
The prefix property syntax has the following parts.
Part | Description |
---|---|
object | An object expression that evaluates to a ReposTypeLib object. |
string | A variable length string that can be a maximum of 255 characters.
Prefix values are added during model installation. If no prefix is specified, the first three letters of the information model name are applied as a default value. |
Remarks
The prefix is also used in XML for identifying namespaces (for example, "Uml" in UmlElement).
Attaching a prefix guarantees that a class that implements interfaces from different information models does not introduce a name conflict when both interfaces share the same name. The prefix is also used in XML for identifying namespaces (for example, "Uml" in UmlElement).
For the Open Information Model (OIM), prefix values are added during model installation. If no prefix is specified, the first three letters of the information model name are applied as a default value.
For the latest version of the MDC (Meta Data Coalition) OIM, prefix values must be added programmatically. Prefix values are not added during model installation.