Freigeben über


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

'Declaration
Function GetDataTipValue ( _
    pTextBuf As IVsTextLines, _
    pTS As TextSpan(), _
    pszExpression As String, _
    <OutAttribute> ByRef pbstrValue As String _
) As Integer
'Usage
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
)
abstract GetDataTipValue : 
        pTextBuf:IVsTextLines * 
        pTS:TextSpan[] * 
        pszExpression:string * 
        pbstrValue:string byref -> int 
function GetDataTipValue(
    pTextBuf : IVsTextLines, 
    pTS : TextSpan[], 
    pszExpression : String, 
    pbstrValue : String
) : int

Parameters

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

.NET Framework Security

See Also

Reference

IVsDebugger Interface

IVsDebugger Members

Microsoft.VisualStudio.Shell.Interop Namespace