Description

Returns an 0 based ordinal in a McDBNodes collection for a given property.

Return Type

A Long value.  

Syntax

object.GetDBNodesIndex (pdbnodes, eLinkProperty, sValue, [lSearchFromIndex0], [lSearchOptions])

The GetDBNodesIndex Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDataManager.
pdbnodesRequired. A McDBNodes object. A McDBNodes that contains the McDBNode link of interest.
eLinkPropertyRequired. A mcdbInfoType enumeration, as described in settings. Specifies the link property being sought.
sValueRequired. A String value. Specifies the link property value being sought.
lSearchFromIndex0Optional. A Long value. The 0 based ordinal position from where (inclusively) to search. When this value is negative, the collection is searched backwards from the absolute value to position 0.
lSearchOptionsOptional. A Long value. For future use.

Settings

The settings for eLinkProperty are:

ConstantValueDescription
 mcdbDatabaseName0

The logical McDBDatabase.Name

 mcdbServerName1

The McDBDatabase.Server

 mcdbID2

The McDBNode.Id

 mcdbAliasName3

The McDBNode.Name in this context

 mcdbState4

Accessibility of the McDBNode