Share via


HierarchyInfo.GetChildren Method

Definition

When overridden in the derived class, returns the child nodes.

protected public:
 virtual cli::array <Microsoft::Web::Management::Client::HierarchyInfo ^> ^ GetChildren();
protected internal virtual Microsoft.Web.Management.Client.HierarchyInfo[] GetChildren ();
abstract member GetChildren : unit -> Microsoft.Web.Management.Client.HierarchyInfo[]
override this.GetChildren : unit -> Microsoft.Web.Management.Client.HierarchyInfo[]
Protected Friend Overridable Function GetChildren () As HierarchyInfo()

Returns

An array of HierarchyInfo objects, or null if this method is not overridden.

Examples

The following example implements the GetChildren method.

protected override HierarchyInfo[] GetChildren()
{
    if (NodeType == sUDemoH)
        return UDemoHgetChildren();
    else
        return null;
}

Remarks

This method is called when the hierarchy service must get the child nodes for a particular node. You should check the NodeType property to verify that the child array should be returned. If the node does not support children, return null.

Applies to