Compartilhar via


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
int GetAttributeValue(
    int index,
    ATTRVALUETYPE type,
    out string pbstrValue
)
int GetAttributeValue(
    [InAttribute] int index, 
    [InAttribute] ATTRVALUETYPE type, 
    [OutAttribute] String^% pbstrValue
)
abstract GetAttributeValue : 
        index:int * 
        type:ATTRVALUETYPE * 
        pbstrValue:string byref -> int
function GetAttributeValue(
    index : int, 
    type : ATTRVALUETYPE, 
    pbstrValue : String
) : int

Parameters

  • index
    Type: Int32

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

  • pbstrValue
    Type: String%

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

Return Value

Type: 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

See Also

Reference

IVsHelpAttributeList Interface

Microsoft.VisualStudio.Shell.Interop Namespace