다음을 통해 공유


IVsHelpAttributeList.GetAttributeStatusVal Method

Definition

Gets the status of an attribute value.

public:
 int GetAttributeStatusVal(System::String ^ bstrValue, Microsoft::VisualStudio::Shell::Interop::ATTRVALUETYPE type, [Runtime::InteropServices::Out] int % pfActive);
int GetAttributeStatusVal(std::wstring const & bstrValue, Microsoft::VisualStudio::Shell::Interop::ATTRVALUETYPE type, [Runtime::InteropServices::Out] int & pfActive);
public int GetAttributeStatusVal (string bstrValue, Microsoft.VisualStudio.Shell.Interop.ATTRVALUETYPE type, out int pfActive);
abstract member GetAttributeStatusVal : string * Microsoft.VisualStudio.Shell.Interop.ATTRVALUETYPE * int -> int
Public Function GetAttributeStatusVal (bstrValue As String, type As ATTRVALUETYPE, ByRef pfActive As Integer) As Integer

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:

HRESULT IVsHelpAttributeList::GetAttributeStatusVal(  
   [in] BSTR bstrValue,   
   [in] ATTRVALUETYPE type,    [out] BOOL *pfActive  
);  

Applies to