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)
Syntax
'Declaration
Function GetAttributeValue ( _
index As Integer, _
type As ATTRVALUETYPE, _
<OutAttribute> ByRef pbstrValue As String _
) As Integer
'Usage
Dim instance As IVsHelpAttributeList
Dim index As Integer
Dim type As ATTRVALUETYPE
Dim pbstrValue As String
Dim returnValue As Integer
returnValue = instance.GetAttributeValue(index, _
type, pbstrValue)
int GetAttributeValue(
int index,
ATTRVALUETYPE type,
out string pbstrValue
)
int GetAttributeValue(
[InAttribute] int index,
[InAttribute] ATTRVALUETYPE type,
[OutAttribute] String^% pbstrValue
)
function GetAttributeValue(
index : int,
type : ATTRVALUETYPE,
pbstrValue : String
) : int
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.
Remarks
COM Signature
From vsshell80.idl:
HRESULT IVsHelpAttributeList::GetAttributeValue(
[in] int index,
[in] ATTRVALUETYPE type,
[out] BSTR *pbstrValue
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.