IVsDebugger.GetDataTipValue Method

Retrieves debugger data tip text for a selected section of text.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'宣言
Function GetDataTipValue ( _
    pTextBuf As IVsTextLines, _
    pTS As TextSpan(), _
    pszExpression As String, _
    <OutAttribute> ByRef pbstrValue As String _
) As Integer
'使用
Dim instance As IVsDebugger
Dim pTextBuf As IVsTextLines
Dim pTS As TextSpan()
Dim pszExpression As String
Dim pbstrValue As String
Dim returnValue As Integer

returnValue = instance.GetDataTipValue(pTextBuf, _
    pTS, pszExpression, pbstrValue)
int GetDataTipValue(
    IVsTextLines pTextBuf,
    TextSpan[] pTS,
    string pszExpression,
    out string pbstrValue
)
int GetDataTipValue(
    [InAttribute] IVsTextLines^ pTextBuf, 
    [InAttribute] array<TextSpan>^ pTS, 
    [InAttribute] String^ pszExpression, 
    [OutAttribute] String^% pbstrValue
)
function GetDataTipValue(
    pTextBuf : IVsTextLines, 
    pTS : TextSpan[], 
    pszExpression : String, 
    pbstrValue : String
) : int

Parameters

  • pTS
    Type: []

    [in] Pointer to a TextSpan structure describing the text location within the buffer. May be a null reference (Nothing in Visual Basic) when using the pszExpression argument.

  • pszExpression
    Type: System.String

    [in] Text of the expression for which to retrieve the data tip text. Used instead of the first two parameters. May be a null reference (Nothing in Visual Basic).

  • pbstrValue
    Type: System.String%

    [out] Pointer to a string containing the data tip text.

Return Value

Type: System.Int32

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsDebugger::GetDataTipValue(
   [in] IVsTextLines *pTextBuf,
   [in] const TextSpan *pTS,
   [in] WCHAR *pszExpression,
   [out] BSTR *pbstrValue
);

Permissions

See Also

Reference

IVsDebugger Interface

IVsDebugger Members

Microsoft.VisualStudio.Shell.Interop Namespace