Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Returns the text of a text span as a BSTR
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'Declaration
Public Overridable Function GetTextBSTR ( _
pts As TextSpan(), _
<OutAttribute> ByRef pbstrText As String _
) As Integer
public virtual int GetTextBSTR(
TextSpan[] pts,
out string pbstrText
)
public:
virtual int GetTextBSTR(
[InAttribute] array<TextSpan>^ pts,
[OutAttribute] String^% pbstrText
)
abstract GetTextBSTR :
pts:TextSpan[] *
pbstrText:string byref -> int
override GetTextBSTR :
pts:TextSpan[] *
pbstrText:string byref -> int
public function GetTextBSTR(
pts : TextSpan[],
pbstrText : String
) : int
Parameters
- pts
Type: array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[]
[in] Pointer to a TextSpan structure.
- pbstrText
Type: System.String%
[out] Pointer to a BSTR containing the text.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsTextImage.GetTextBSTR(array<TextSpan[], String%)
.NET Framework Security
- 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.