Finds the tree nodes with specified key, optionally searching subnodes.
Public Function Find ( _ key As String, _ searchAllChildren As Boolean _ ) As TreeNode()
Dim instance As TreeNodeCollection Dim key As String Dim searchAllChildren As Boolean Dim returnValue As TreeNode() returnValue = instance.Find(key, searchAllChildren)
public TreeNode[] Find( string key, bool searchAllChildren )
public: array<TreeNode^>^ Find( String^ key, bool searchAllChildren )
public function Find( key : String, searchAllChildren : boolean ) : TreeNode[]
The Name property corresponds to the key for a TreeNode in the TreeNodeCollection.
The key comparison is not case-sensitive. If the key parameter is nullNothingnullptra null reference (Nothing in Visual Basic) or an empty string, or there are no matches, the Item property returns an empty array.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98