IVsUIDynamicCollection.InsertItem(UInt32, IVsUIDataSource) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an item to the collection.
public:
int InsertItem(System::UInt32 nIndex, Microsoft::VisualStudio::Shell::Interop::IVsUIDataSource ^ pItem);
public:
int InsertItem(unsigned int nIndex, Microsoft::VisualStudio::Shell::Interop::IVsUIDataSource ^ pItem);
int InsertItem(unsigned int nIndex, Microsoft::VisualStudio::Shell::Interop::IVsUIDataSource const & pItem);
public int InsertItem (uint nIndex, Microsoft.VisualStudio.Shell.Interop.IVsUIDataSource pItem);
abstract member InsertItem : uint32 * Microsoft.VisualStudio.Shell.Interop.IVsUIDataSource -> int
Public Function InsertItem (nIndex As UInteger, pItem As IVsUIDataSource) As Integer
Parameters
- nIndex
- UInt32
[in] The position for the new item.
- pItem
- IVsUIDataSource
[in] The item to add.
Returns
Returns S_OK if the item was added.