次の方法で共有


IVsUIDynamicCollection.ReplaceItem(UInt32, IVsUIDataSource) Method

Definition

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.

Applies to