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
'宣言
Function Item ( _
index As Object, _
<OutAttribute> ByRef ppItem As IVsUserContextItem _
) As Integer
'使用
Dim instance As IVsUserContextItemCollection
Dim index As Object
Dim ppItem As IVsUserContextItem
Dim returnValue As Integer
returnValue = instance(index, ppItem)
int Item(
Object index,
out IVsUserContextItem ppItem
)
int Item(
[InAttribute] Object^ index,
[OutAttribute] IVsUserContextItem^% ppItem
)
function Item(
index : Object,
ppItem : IVsUserContextItem
) : int
Parameters
- index
Type: System.Object
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.
Remarks
COM Signature
From context.idl:
HRESULT IVsUserContextItemCollection::Item(
[in] VARIANT index,
[out,retval] IVsUserContextItem ** ppItem
);
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsUserContextItemCollection Interface