IVsUIDynamicCollection.ReplaceItem(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.
Replaces an item in the colleciton.
public:
int ReplaceItem(System::UInt32 nIndex, Microsoft::VisualStudio::Shell::Interop::IVsUIDataSource ^ pItem);
public:
int ReplaceItem(unsigned int nIndex, Microsoft::VisualStudio::Shell::Interop::IVsUIDataSource ^ pItem);
int ReplaceItem(unsigned int nIndex, Microsoft::VisualStudio::Shell::Interop::IVsUIDataSource const & pItem);
public int ReplaceItem (uint nIndex, Microsoft.VisualStudio.Shell.Interop.IVsUIDataSource pItem);
abstract member ReplaceItem : uint32 * Microsoft.VisualStudio.Shell.Interop.IVsUIDataSource -> int
Public Function ReplaceItem (nIndex As UInteger, pItem As IVsUIDataSource) As Integer
Parameters
- nIndex
- UInt32
[in] The 0 based index of the item to replace.
- pItem
- IVsUIDataSource
[in] The new item.
Returns
Returns S_OK if the item was replaced.