IVsUIDynamicCollection.AddItem Method
Adds a data source to the collection.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.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
- pItem
Type: Microsoft.VisualStudio.Shell.Interop.IVsUIDataSource
[in] The data source to add
- pIndex
Type: System.UInt32%
[out] Location to return the index of the added item.
Return Value
Type: System.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.