Description

Return a particular McDBNode instance from this McDBNodes collection or a named McDBNode.Path.

Property type

A McDBNode object.  

Syntax

object.Item(Index)

The Item Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDBNodes.
IndexRequired. A Variant value.

The McDBNode::Name, McDBNode.Path, or 0-based (numeric) Index for the McDBNode to retrieve.

Remarks

If an McDBNode::Name index is used, and multiple matching McDBNode instances exist in this collection, the first one is returned. Add and McDBNode::Name prevents name collisions in McDBNode.Children, however it is still possible for there to be name collisions when this collection contains McDBNode instances from multiple McDBNode.Parent objects. If an McDBNode.Path is used for Index, it must be of the form: [//DatabaseName][//GlobalNodeId][\][ChildNodeNameOrId]... [\ChildNodeNameOrId], where DatabaseName is the logical name used to open the database containing the owner/contents of this collection; GlobalNodeId is an object reference (McDBNode.Id), which may specify any node in the McDBDatabase, and ChildNodeNameOrId specifies either the string McDBNode.Name or McDBNode.Id of a child node of the active context (i.e. the Path parsed until this token is encountered). A trailing backslash is trimmed from Path values for Index.

Notes

If no name or path is specified (i.e. an empty string) the value of this property is the node “owning” (i.e. the Parent of) this McDBNodes collection or Nothing if this collection contains references to McDBNodes from multiple McDBNode.Parent instances. This property is also Nothing when an invalid Index is requested.