Udostępnij za pośrednictwem


IVsSimpleObjectList2.GetProperty(UInt32, Int32, Object) Method

Definition

Returns the specified property for the specified list item.

public:
 int GetProperty(System::UInt32 index, int propid, [Runtime::InteropServices::Out] System::Object ^ % pvar);
int GetProperty(unsigned int index, int propid, [Runtime::InteropServices::Out] winrt::Windows::Foundation::IInspectable const & & pvar);
public int GetProperty (uint index, int propid, out object pvar);
abstract member GetProperty : uint32 * int * obj -> int
Public Function GetProperty (index As UInteger, propid As Integer, ByRef pvar As Object) As Integer

Parameters

index
UInt32

[in] The index of the item for which to get a property.

propid
Int32

[in] A value from the _VSOBJLISTELEMPROPID enumeration specifying the property to get.

pvar
Object

[out] Returns a VARIANT object containing the requested value.

Returns

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  
);  

Applies to