Compartilhar via


IVsToolbox2.EnumItems(String, IEnumToolboxItems) Method

Definition

Enumerates items on a given tab in the Toolbox, or all items in the Toolbox.

public:
 int EnumItems(System::String ^ lpszTab, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IEnumToolboxItems ^ % pEnum);
public:
 int EnumItems(Platform::String ^ lpszTab, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IEnumToolboxItems ^ &  pEnum);
int EnumItems(std::wstring const & lpszTab, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IEnumToolboxItems const & & pEnum);
public int EnumItems (string lpszTab, out Microsoft.VisualStudio.Shell.Interop.IEnumToolboxItems pEnum);
abstract member EnumItems : string * IEnumToolboxItems -> int
Public Function EnumItems (lpszTab As String, ByRef pEnum As IEnumToolboxItems) As Integer

Parameters

lpszTab
String

[in] Toolbox tab to enumerate items on. This value can be null.

pEnum
IEnumToolboxItems

[out] Pointer to the IEnumToolboxItems interface, which is used to enumerate Toolbox items.

Returns

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

Implements

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsToolbox2::EnumItems(  
   [in]LPCOLESTR lpszTab,  
   [out]IEnumToolboxItems** pEnum  
);  

If you do not specify a Toolbox tab for the lpszTab parameter, then this method enumerates through all items in the Toolbox.

Applies to