IVsUserContextItemCollection::ItemAt Method (Int32, IVsUserContextItem^)

 

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)

int ItemAt(
	int index,
	[OutAttribute] IVsUserContextItem^% ppItem
)

Parameters

index
Type: System::Int32

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

ppItem
Type: Microsoft.VisualStudio.Shell.Interop::IVsUserContextItem^

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

Return Value

Type: System::Int32

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

From context.idl:

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