IEnumToolboxItems.Next Method
Retrieves the next group of data object interfaces (IDataObject) representing toolbox items.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function Next ( _
celt As UInteger, _
<OutAttribute> rgelt As IDataObject(), _
<OutAttribute> ByRef pceltFetched As UInteger _
) As Integer
int Next(
uint celt,
IDataObject[] rgelt,
out uint pceltFetched
)
int Next(
[InAttribute] unsigned int celt,
[OutAttribute] array<IDataObject^>^ rgelt,
[OutAttribute] unsigned int% pceltFetched
)
abstract Next :
celt:uint32 *
rgelt:IDataObject[] byref *
pceltFetched:uint32 byref -> int
function Next(
celt : uint,
rgelt : IDataObject[],
pceltFetched : uint
) : int
Parameters
celt
Type: UInt32[in] Number of interfaces to return, or zero to indicate a request for all of the objects.
rgelt
Type: array<Microsoft.VisualStudio.OLE.Interop.IDataObject[][out] An array of IDataObject interfaces representing toolbox items. Contains pceltFetched objects.
pceltFetched
Type: UInt32%[out] Actual number of interfaces retrieved.
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell.idl:
HRESULT IEnumToolboxItems::Next(
[in] ULONG celt,
[out, size_is(celt), length_is(*pceltFetched)] IDataObject **rgelt, [out] ULONG *pceltFetched
);
.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.