Share via


IVsUserContextItemCollection.ItemAt(Int32, IVsUserContextItem) Method

Definition

Retrieves an item from the collection by integer index.

public:
 int ItemAt(int index, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsUserContextItem ^ % ppItem);
public:
 int ItemAt(int index, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsUserContextItem ^ &  ppItem);
int ItemAt(int index, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsUserContextItem const & & ppItem);
public int ItemAt (int index, out Microsoft.VisualStudio.Shell.Interop.IVsUserContextItem ppItem);
abstract member ItemAt : int * IVsUserContextItem -> int
Public Function ItemAt (index As Integer, ByRef ppItem As IVsUserContextItem) As Integer

Parameters

index
Int32

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

ppItem
IVsUserContextItem

[out] Pointer to a IVsUserContextItem interface giving access to the item.

Returns

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  
);  

Applies to