IVsTextImage.GetTextBSTR Method
Visual Studio 2012
Return the text of a text span as a BSTR
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Parameters
- pts
- Type: Microsoft.VisualStudio.TextManager.Interop.TextSpan[]
[in] Pointer to a TextSpan structure.
- pbstrText
- Type: String
[out] Pointer to a BSTR containing the text.
Return Value
Type: Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
- 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.