IVsHelpAttributeList.GetAttributeStatusVal Method

Definition

Gets the status of an attribute value.

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

Parameters

bstrValue
String

[in] Pointer to a string containing the value.

type
ATTRVALUETYPE

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

pfActive
Int32

[out] Boolean. Set to true if the attribute is active.

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::GetAttributeStatusVal(  
   [in] BSTR bstrValue,   
   [in] ATTRVALUETYPE type,    [out] BOOL *pfActive  
);  

Applies to

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