IVsHelpAttributeList.GetAttributeStatusVal(String, ATTRVALUETYPE, Int32) Methode

Definition

Ruft den Status eines Attributwerts ab.

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

Parameter

bstrValue
String

[in] Zeiger auf eine Zeichenfolge, die den Wert enthält.

type
ATTRVALUETYPE

[in] Ein ATTRVALUETYPE-Objekt, das den Typ des Attributs angibt: VSHAL_Real für das tatsächliche Attribut, VSHAL_Display für das Anzeigenattribut.

pfActive
Int32

[out] Boolescher Wert. Auf true festlegen, wenn das Attribut aktiv ist.

Gibt zurück

Int32

Wenn die Methode erfolgreich ist, wird S_OK zurückgegeben. Bei einem Fehler wird ein Fehlercode zurückgegeben.

Hinweise

COM-Signatur

Aus vsshell80. idl:

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

Gilt für