Compartir a través de


IVsUIDynamicCollection.ReplaceItem Method

Replaces an item in the colleciton.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assemblies:   Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Function ReplaceItem ( _
    nIndex As UInteger, _
    pItem As IVsUIDataSource _
) As Integer
int ReplaceItem(
    uint nIndex,
    IVsUIDataSource pItem
)
int ReplaceItem(
    [InAttribute] unsigned int nIndex, 
    [InAttribute] IVsUIDataSource^ pItem
)
abstract ReplaceItem : 
        nIndex:uint32 * 
        pItem:IVsUIDataSource -> int
function ReplaceItem(
    nIndex : uint, 
    pItem : IVsUIDataSource
) : int

Parameters

  • nIndex
    Type: UInt32

    [in] The 0 based index of the item to replace.

Return Value

Type: Int32
Returns S_OK if the item was replaced.

.NET Framework Security

See Also

Reference

IVsUIDynamicCollection Interface

Microsoft.VisualStudio.Shell.Interop Namespace