IVsHelpAttributeList.GetAttributeValue(Int32, ATTRVALUETYPE, String) Method

Definition

Get the attribute's value by index. Also sets the position for other methods not specifying an index.

C++/WinRT
int GetAttributeValue(int index, Microsoft::VisualStudio::Shell::Interop::ATTRVALUETYPE type, [Runtime::InteropServices::Out] std::wstring const & & pbstrValue);

Parameters

index
Int32

[in] Index indicating the position of the attribute in the list.

type
ATTRVALUETYPE

[in] An ATTRVALUETYPE indicating the type of the attribute: VSHAL_Real for the actual attribute, VSHAL_Display for the display attribute.

pbstrValue
String

[out] Pointer to a string containing the attribute value.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

cpp#
HRESULT IVsHelpAttributeList::GetAttributeValue(  
   [in] int index,   
   [in] ATTRVALUETYPE type,   
   [out] BSTR *pbstrValue  
);  

Applies to

Produit Versions
Visual Studio SDK 2015, 2017, 2019, 2022