Freigeben über


IVsUIDynamicCollection.InsertItem(UInt32, IVsUIDataSource) Method

Definition

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.

Applies to