Description

A read/write property reflecting the object's immediate Parent McObject, if any.

Property type

A McObject object.  

Syntax

[Set] object.ParentMcObject [= McObject]

The ParentMcObject Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McObject.
McObjectA McObject object.

Remarks

This property will be Nothing for objects with no parent ("global" objects); assign Nothing to make an object global.

If this object is either mcobjTypeXOBJECT (can hold an IDispatch interface Value) or mcobjTypeINTERFACE (can hold an IUnknown interface as Value), there is a non-NULL Interface property and that interface exposes an IMcObjConnection interface, then an McObjConnection::ParentChanged call will be made to that interface and to all of the descendents of this McObject after the new (or no) parent is installed. In addition, all standard notify sinks of this McObject (not its children) are sent an IMcObjStandardNotify.HousekeepingChanged notify.

Exceptions

Assignment of a new parent (or no parent) may fail if there is either a Name property collision or a unique TagNumber property collision with an existing object with the new (or no) ParentMcObject.