Gets the name of the attribute of the item at the current index set by GetAttributeStatusIndex or GetAttributeValue.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'宣言
Function GetAttributeName ( _
<OutAttribute> ByRef bstrName As String _
) As Integer
'使用
Dim instance As IVsHelpAttributeList
Dim bstrName As String
Dim returnValue As Integer
returnValue = instance.GetAttributeName(bstrName)
int GetAttributeName(
out string bstrName
)
int GetAttributeName(
[OutAttribute] String^% bstrName
)
function GetAttributeName(
bstrName : String
) : int
Parameters
bstrName
Type: System.String%[out] String containing the attribute name.
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::GetAttributeName(
[out] BSTR *bstrName
);
Permissions
- 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.