Version

IndexOf Method (IUIHierarchyNodeList)

Gets the index of a specific IUIHierarchyNode within the list, if it exists.
Syntax
'Declaration
 
Function IndexOf( _
   ByVal node As IUIHierarchyNode _
) As Integer
int IndexOf( 
   IUIHierarchyNode node
)

Parameters

node
The node searched for within the list.

Return Value

The index of node within the list if present; otherwise -1.
Remarks

Implementations of IUIHierarchyNode that require the IndexOf method to function based on a node's value equivalency must override Equals and GetHashCode when their class implements IUIHierarchyNode, otherwise only reference comparison is performed by this method.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also