IVsUIDynamicCollection.InsertItem Method
Adds an item to the collection.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assemblies: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Function InsertItem ( _
nIndex As UInteger, _
pItem As IVsUIDataSource _
) As Integer
int InsertItem(
uint nIndex,
IVsUIDataSource pItem
)
int InsertItem(
[InAttribute] unsigned int nIndex,
[InAttribute] IVsUIDataSource^ pItem
)
abstract InsertItem :
nIndex:uint32 *
pItem:IVsUIDataSource -> int
function InsertItem(
nIndex : uint,
pItem : IVsUIDataSource
) : int
Parameters
nIndex
Type: UInt32[in] The position for the new item.
pItem
Type: Microsoft.VisualStudio.Shell.Interop.IVsUIDataSource[in] The item to add.
Return Value
Type: Int32
Returns S_OK if the item was added.
.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.