IVsUIDynamicCollection.AddItem(IVsUIDataSource, UInt32) 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 a data source to the collection.
public:
int AddItem(Microsoft::VisualStudio::Shell::Interop::IVsUIDataSource ^ pItem, [Runtime::InteropServices::Out] System::UInt32 % pIndex);
int AddItem(Microsoft::VisualStudio::Shell::Interop::IVsUIDataSource const & pItem, [Runtime::InteropServices::Out] unsigned int & pIndex);
public int AddItem (Microsoft.VisualStudio.Shell.Interop.IVsUIDataSource pItem, out uint pIndex);
abstract member AddItem : Microsoft.VisualStudio.Shell.Interop.IVsUIDataSource * uint32 -> int
Public Function AddItem (pItem As IVsUIDataSource, ByRef pIndex As UInteger) As Integer
Parameters
- pItem
- IVsUIDataSource
[in] The data source to add
- pIndex
- UInt32
[out] Location to return the index of the added item.
Returns
Returns S_OK if the item was added.