IVsObjectList2.GetProperty(UInt32, Int32, Object) Method

Definition

Returns the specified property for the specified list item.

C++/WinRT
int GetProperty(unsigned int index, int propid, [Runtime::InteropServices::Out] winrt::Windows::Foundation::IInspectable const & & pvar);

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:

[C++]

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

Applies to

Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022