__VSCOMHIEROPTIONS Enum

Definition

Controls whether the FindCommonSelectedHierarchy(UInt32, IVsUIHierarchy) can return the solution as the common hierarchy.

C++/CX
public enum class __VSCOMHIEROPTIONS
Inheritance
__VSCOMHIEROPTIONS

Fields

Name Value Description
COMHIEROPT_RootHierarchyOnly 1

Return project nodes only.

COMHIEROPT_AllowHiddenRoot 2

Okay to return Solution node hierarchy.

Remarks

When using COMHIEROPT_RootHierarchyOnly, FindCommonSelectedHierarchy only returns other hierarchies; the Solution is never returned.

In contrast, the member COMHIEROPT_AllowHiddenRoot, allows FindCommonSelectedHierarchy to return the Solution as the common hierarchy, if there is no other hierarchy common to the selected hierarchies or items.

COM Signature

From vsshell.idl:

Applies to

Product Versions
Visual Studio SDK 2015, 2017, 2019, 2022