IVsEnumHierarchyItemsFactory::EnumHierarchyItems Method (IVsHierarchy^, UInt32, UInt32, IEnumHierarchyItems^)

 

Provides an enumerator for items in a specified project hierarchy.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int EnumHierarchyItems(
	IVsHierarchy^ pHierRoot,
	unsigned int grfItems,
	unsigned int itemidRoot,
	[OutAttribute] IEnumHierarchyItems^% ppenum
)

Parameters

pHierRoot
Type: Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^

[in] Pointer to the IVsHierarchy interface defining the project hierarchy.

grfItems
Type: System::UInt32

[in] Bit flags determining which hierarchy items to include in the enumeration. Set by combining values from the __VSEHI enumeration.

itemidRoot
Type: System::UInt32

[in] The item ID. Usually VSITEMID_ROOT.

ppenum
Type: Microsoft.VisualStudio.Shell.Interop::IEnumHierarchyItems^

[out] Pointer to the enumerator, a IEnumHierarchyItems instance.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From vsshell.idl:

HRESULT IVsEnumHierarchyItemsFactory::EnumHierarchyItems(
   [in] IVsHierarchy * pHierRoot, 
   [in] VSEHI grfItems, 
   [in] VSITEMID itemidRoot
);
Return to top
Show: