Compartir a través de


IVsUserContextItemCollection.Item Method

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)

Syntax

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

Parameters

  • index
    Type: Object

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

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

.NET Framework Security

See Also

Reference

IVsUserContextItemCollection Interface

Microsoft.VisualStudio.Shell.Interop Namespace