IVsUserContextItemCollection.ItemAt Method

Retrieves an item from the collection by integer index.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function ItemAt ( _
    index As Integer, _
    <OutAttribute> ByRef ppItem As IVsUserContextItem _
) As Integer
int ItemAt(
    int index,
    out IVsUserContextItem ppItem
)
int ItemAt(
    [InAttribute] int index, 
    [OutAttribute] IVsUserContextItem^% ppItem
)
abstract ItemAt : 
        index:int * 
        ppItem:IVsUserContextItem byref -> int
function ItemAt(
    index : int, 
    ppItem : IVsUserContextItem
) : int

Parameters

  • index
    Type: Int32

    [in] Long integer. The index of the item.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From context.idl:

HRESULT IVsUserContextItemCollection::ItemAt(
   [in] long index, 
   [out, retval] IVsUserContextItem ** ppItem
);

.NET Framework Security

See Also

Reference

IVsUserContextItemCollection Interface

Microsoft.VisualStudio.Shell.Interop Namespace