Udostępnij za pośrednictwem


IVsUserContextItemCollection.Item(Object, IVsUserContextItem) Method

Definition

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

public:
 int Item(System::Object ^ index, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsUserContextItem ^ % ppItem);
public:
 int Item(Platform::Object ^ index, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsUserContextItem ^ &  ppItem);
int Item(winrt::Windows::Foundation::IInspectable const & index, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsUserContextItem const & & ppItem);
public int Item (object index, out Microsoft.VisualStudio.Shell.Interop.IVsUserContextItem ppItem);
abstract member Item : obj * IVsUserContextItem -> int
Public Function Item (index As Object, ByRef ppItem As IVsUserContextItem) As Integer

Parameters

index
Object

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

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

Applies to