IVsUIDynamicCollection::AddItem Method (IVsUIDataSource^, UInt32)

 

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)

int AddItem(
	IVsUIDataSource^ pItem,
	[OutAttribute] unsigned int% pIndex
)

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.

Return to top
Show: