Share via


HierarchyService.AddChildren Method

Definition

When overridden in a derived class, adds the specified child nodes to the parent node.

public:
 abstract void AddChildren(Microsoft::Web::Management::Client::HierarchyInfo ^ hierarchyInfo, System::Collections::Generic::IEnumerable<Microsoft::Web::Management::Client::HierarchyInfo ^> ^ childrenInfo);
public abstract void AddChildren (Microsoft.Web.Management.Client.HierarchyInfo hierarchyInfo, System.Collections.Generic.IEnumerable<Microsoft.Web.Management.Client.HierarchyInfo> childrenInfo);
abstract member AddChildren : Microsoft.Web.Management.Client.HierarchyInfo * seq<Microsoft.Web.Management.Client.HierarchyInfo> -> unit

Parameters

hierarchyInfo
HierarchyInfo

The parent HierarchyInfo object.

childrenInfo
IEnumerable<HierarchyInfo>

The child HierarchyInfo object to add.

Remarks

This method adds an array of child nodes to the specified node. This method enables you to create a customized AddChildren method to perform actions such as selecting a node other than the added child nodes, which are ordinarily selected.

For an example of this method, see the example for the HierarchyService class.

Applies to