Share via


HierarchyService.Collapse(HierarchyInfo) Method

Definition

When overridden in a derived class, collapses the specified node.

public:
 abstract void Collapse(Microsoft::Web::Management::Client::HierarchyInfo ^ hierarchyInfo);
public abstract void Collapse (Microsoft.Web.Management.Client.HierarchyInfo hierarchyInfo);
abstract member Collapse : Microsoft.Web.Management.Client.HierarchyInfo -> unit

Parameters

hierarchyInfo
HierarchyInfo

The HierarchyInfo object to collapse.

Remarks

This method programmatically collapses the specified node. This method enables you to create a customized Collapse method to perform actions such as prohibiting the collapse of specific types of nodes.

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

Applies to