UIDataSourceDynamicCollection.AddItem Method (IVsUIDataSource, UInt32%)

Adds a new data source item to the collection

Namespace:  Microsoft.Internal.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

声明
Public Overridable Function AddItem ( _
    pItem As IVsUIDataSource, _
    <OutAttribute> ByRef pIndex As UInteger _
) As Integer
用法
Dim instance As UIDataSourceDynamicCollection
Dim pItem As IVsUIDataSource
Dim pIndex As UInteger
Dim returnValue As Integer

returnValue = instance.AddItem(pItem, _
    pIndex)
public virtual int AddItem(
    IVsUIDataSource pItem,
    out uint pIndex
)
public:
virtual int AddItem(
    IVsUIDataSource^ pItem, 
    [OutAttribute] unsigned int% pIndex
)
abstract AddItem : 
        pItem:IVsUIDataSource * 
        pIndex:uint32 byref -> int 
override AddItem : 
        pItem:IVsUIDataSource * 
        pIndex:uint32 byref -> int 
public function AddItem(
    pItem : IVsUIDataSource, 
    pIndex : uint
) : int

Parameters

  • pIndex
    Type: System.UInt32%
    The 0-based index of the item in the collection

Return Value

Type: System.Int32

Implements

IVsUIDynamicCollection.AddItem(IVsUIDataSource, UInt32%)

.NET Framework Security

See Also

Reference

UIDataSourceDynamicCollection Class

UIDataSourceDynamicCollection Members

AddItem Overload

Microsoft.Internal.VisualStudio.PlatformUI Namespace