Description

A read/write text string property which controls and reflects the default “namespace” for the collection object. This string is initially “McOM”.

Property type

A String value.  

Syntax

object.NameSpace [= value]

The NameSpace Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McObjects.
valueA String value.

Remarks

A “namespace” can be used to isolate McObject names which might otherwise collide with other names in the McObjects shared collection. McObject names must be unique within their namespace if they share the same parent object (see the Add method).

Namespace is local to the instance of the collection object and initially it is “McOM”. Namespace strings can be “nested” for purposes of name lookups by the Item method when the eLookupMethods argument is mcobjMatchScopedNamespace (which is usually the default). For example, a namespace of “McOM_MyObjects” will find objects with “McOM_MyObjects” namespace, but it will also find objects with the default “McOM” namespace for mcobjMatchScopedNamespace lookups.

Any namespace starting with “::” is equivalent to an empty string and indicates the “global” namespace. However, it is recommended that all namespace strings you use start with “McOM” to allow scoped lookups, as described above. Assigning an empty string, e.g. Namespace="", will set the default namespace of “McOM”.

On assignment, a optional trailing “::”, may be postpended to the assigned string. E.g., Namespace="McOM" and Namespace="McOM::" are equivalent.