Partager via


IVsUIDynamicCollection.AddItem Method

Adds a data source 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 AddItem ( _
    pItem As IVsUIDataSource, _
    <OutAttribute> ByRef pIndex As UInteger _
) As Integer
int AddItem(
    IVsUIDataSource pItem,
    out uint pIndex
)
int AddItem(
    [InAttribute] IVsUIDataSource^ pItem, 
    [OutAttribute] unsigned int% pIndex
)
abstract AddItem : 
        pItem:IVsUIDataSource * 
        pIndex:uint32 byref -> int
function AddItem(
    pItem : IVsUIDataSource, 
    pIndex : uint
) : int

Parameters

  • pIndex
    Type: UInt32%

    [out] Location to return the index of the added item.

Return Value

Type: Int32
Returns S_OK if the item was added.

.NET Framework Security

See Also

Reference

IVsUIDynamicCollection Interface

Microsoft.VisualStudio.Shell.Interop Namespace