Udostępnij za pośrednictwem


IVsEnumHierarchyItemsFactory.EnumHierarchyItems Method

Definition

Provides an enumerator for items in a specified project hierarchy.

public:
 int EnumHierarchyItems(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierRoot, System::UInt32 grfItems, System::UInt32 itemidRoot, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IEnumHierarchyItems ^ % ppenum);
public:
 int EnumHierarchyItems(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierRoot, unsigned int grfItems, unsigned int itemidRoot, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IEnumHierarchyItems ^ &  ppenum);
int EnumHierarchyItems(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHierRoot, unsigned int grfItems, unsigned int itemidRoot, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IEnumHierarchyItems const & & ppenum);
public int EnumHierarchyItems (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHierRoot, uint grfItems, uint itemidRoot, out Microsoft.VisualStudio.Shell.Interop.IEnumHierarchyItems ppenum);
abstract member EnumHierarchyItems : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 * uint32 * IEnumHierarchyItems -> int
Public Function EnumHierarchyItems (pHierRoot As IVsHierarchy, grfItems As UInteger, itemidRoot As UInteger, ByRef ppenum As IEnumHierarchyItems) As Integer

Parameters

pHierRoot
IVsHierarchy

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

grfItems
UInt32

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

itemidRoot
UInt32

[in] The item ID. Usually VSITEMID_ROOT.

ppenum
IEnumHierarchyItems

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

Returns

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

Remarks

COM Signature

From vsshell.idl:

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

Applies to