다음을 통해 공유


IVsUIDynamicCollection.AddItem(IVsUIDataSource, UInt32) Method

Definition

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.

Applies to