Export (0) Print
Expand All

IVsHelpAttributeList.GetAttributeValue Method

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

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

int GetAttributeValue (
	[InAttribute] int index,
	[InAttribute] ATTRVALUETYPE type,
	out string pbstrValue
)
int GetAttributeValue (
	/** @attribute InAttribute() */ int index, 
	/** @attribute InAttribute() */ ATTRVALUETYPE type, 
	/** @attribute OutAttribute() */ /** @ref */ String pbstrValue
)
JScript does not support passing value-type arguments by reference.

Parameters

index

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

type

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

pbstrValue

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

Return Value

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

COM Signature

From vsshell80.idl:

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

Community Additions

ADD
Show:
© 2014 Microsoft