IVsHelpAttributeList.GetAttributeValue Method (Int32, ATTRVALUETYPE, String)

 

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(
	int index,
	ATTRVALUETYPE type,
	out string pbstrValue
)

Parameters

index
Type: System.Int32

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

type
Type: Microsoft.VisualStudio.Shell.Interop.ATTRVALUETYPE

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

pbstrValue
Type: System.String

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

Return Value

Type: System.Int32

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

From vsshell80.idl:

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