Compartir a través de


IVsSimpleObjectList2.GetProperty Method

Returns the specified property for the specified list item.

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

Syntax

'Declaración
Function GetProperty ( _
    index As UInteger, _
    propid As Integer, _
    <OutAttribute> ByRef pvar As Object _
) As Integer
'Uso
Dim instance As IVsSimpleObjectList2
Dim index As UInteger
Dim propid As Integer
Dim pvar As Object
Dim returnValue As Integer

returnValue = instance.GetProperty(index, _
    propid, pvar)
int GetProperty(
    uint index,
    int propid,
    out Object pvar
)
int GetProperty(
    [InAttribute] unsigned int index, 
    [InAttribute] int propid, 
    [OutAttribute] Object^% pvar
)
abstract GetProperty : 
        index:uint32 * 
        propid:int * 
        pvar:Object byref -> int 
function GetProperty(
    index : uint, 
    propid : int, 
    pvar : Object
) : int

Parameters

  • index
    Type: System.UInt32
    [in] The index of the item for which to get a property.
  • pvar
    Type: System.Object%
    [out] Returns a VARIANT object containing the requested value.

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 vsshell80.idl:

HRESULT IVsSimpleObjectList2::GetProperty(
   [in]  ULONG                Index, 
   [in]  VSOBJLISTELEMPROPID  propid, 
   [out] VARIANT             *pvar
);

.NET Framework Security

See Also

Reference

IVsSimpleObjectList2 Interface

IVsSimpleObjectList2 Members

Microsoft.VisualStudio.Shell.Interop Namespace