Partager via


IVsUIDynamicCollection.GetItem Method

Returns an item from the collection.

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 GetItem ( _
    nItem As UInteger, _
    <OutAttribute> ByRef pVsUIDataSource As IVsUIDataSource _
) As Integer
int GetItem(
    uint nItem,
    out IVsUIDataSource pVsUIDataSource
)
int GetItem(
    [InAttribute] unsigned int nItem, 
    [OutAttribute] IVsUIDataSource^% pVsUIDataSource
)
abstract GetItem : 
        nItem:uint32 * 
        pVsUIDataSource:IVsUIDataSource byref -> int
function GetItem(
    nItem : uint, 
    pVsUIDataSource : IVsUIDataSource
) : int

Parameters

  • nItem
    Type: UInt32

    [in] The index of the item to return.

Return Value

Type: Int32
Return S_OK if the item was returned.

.NET Framework Security

See Also

Reference

IVsUIDynamicCollection Interface

Microsoft.VisualStudio.Shell.Interop Namespace