次の方法で共有


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

'宣言
Function GetAttributeValue ( _
    index As Integer, _
    type As ATTRVALUETYPE, _
    <OutAttribute> ByRef pbstrValue As String _
) As Integer
'使用
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.

  • 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
);

Permissions

See Also

Reference

IVsHelpAttributeList Interface

IVsHelpAttributeList Members

Microsoft.VisualStudio.Shell.Interop Namespace