IMcObjectsChangeObjectName Method
|
|
Changes an McObject's name, or assigns a name to an unnamed
McObject.
Namespace:
MediaCy.IQL.ObjectManager
Assembly:
MediaCy.IQL.ObjectManager (in MediaCy.IQL.ObjectManager.dll) Version: 10.0.6912.0
SyntaxSub ChangeObjectName (
pimcobjectToName As Object,
bstrName As String,
Optional bstrNamespace As String = ""
)
Parameters
- pimcobjectToName
- Type: SystemObject
The McObject* of the McObject to
rename. - bstrName
- Type: SystemString
New name for the object. This name must be globally
unique within its Namespace for all objects sharing the same parent
McObject. Use the CheckForLegalName method to check a name for legal
syntax and collisions. - bstrNamespace (Optional)
- Type: SystemString
Optional namespace for the object name, or NULL
or empty to use the default Namespace (see the Namespace property, and the
Item method). Supply a value of "::" to specify the global namespace,
irrespective of the current default Namespace property. However, namespaces
that you use should generally start with "McOM".
RemarksBoth the name and namespace of an object can be changed with this
method, but the parent object cannot be changed (names must be unique for
all objects sharing the same parent object).
You cannot change the name of an McObject if the
mcobjUserFlagSystemObject bit in the UserFlag property is set.
See Also