IVsUserContextItemCollection::Item Method (Object^, IVsUserContextItem^)

 

Retrieves an item from the collection according to a VARIANT index.

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

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

Parameters

index
Type: System::Object^

[in] A variant. The index of the item to retrieve.

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::Item(
   [in] VARIANT index, 
   [out,retval] IVsUserContextItem ** ppItem
);
Return to top
Show: