Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Enumerates items on a given tab in the Toolbox, or all items in the Toolbox.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function EnumItems ( _
lpszTab As String, _
<OutAttribute> ByRef pEnum As IEnumToolboxItems _
) As Integer
'Usage
Dim instance As IVsToolbox2
Dim lpszTab As String
Dim pEnum As IEnumToolboxItems
Dim returnValue As Integer
returnValue = instance.EnumItems(lpszTab, _
pEnum)
int EnumItems(
string lpszTab,
out IEnumToolboxItems pEnum
)
int EnumItems(
[InAttribute] String^ lpszTab,
[OutAttribute] IEnumToolboxItems^% pEnum
)
abstract EnumItems :
lpszTab:string *
pEnum:IEnumToolboxItems byref -> int
function EnumItems(
lpszTab : String,
pEnum : IEnumToolboxItems
) : int
Parameters
- lpszTab
Type: System.String
[in] Toolbox tab to enumerate items on. This value can be nulla null reference (Nothing in Visual Basic).
- pEnum
Type: Microsoft.VisualStudio.Shell.Interop.IEnumToolboxItems%
[out] Pointer to the IEnumToolboxItems interface, which is used to enumerate Toolbox items.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsToolbox.EnumItems(String, IEnumToolboxItems%)
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.