IVsSyntheticRegion.GetText Method
Gets the text associated with the region.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'宣告
Function GetText ( _
<OutAttribute> ByRef pbstrText As String _
) As Integer
int GetText(
out string pbstrText
)
int GetText(
[OutAttribute] String^% pbstrText
)
abstract GetText :
pbstrText:string byref -> int
function GetText(
pbstrText : String
) : int
Parameters
- pbstrText
Type: System.String%
[out] The text for the region.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
警告
This allocates a new BSTR which must be freed by the caller.
COM Signature
From textmgr.idl:
HRESULT IVsSyntheticRegion::GetText(
[out] BSTR *pbstrText
);
.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.