Version

Contains Method (IUIHierarchyNodeList)

Indicates whether the specified IUIHierarchyNode exists within the list.
Syntax
'Declaration
 
Function Contains( _
   ByVal node As IUIHierarchyNode _
) As Boolean
bool Contains( 
   IUIHierarchyNode node
)

Parameters

node
The node searched for within the list.

Return Value

True when node exists within the list; otherwise False.
Remarks

Implementations of IUIHierarchyNode that require the Contains 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