IVsTextBufferProvider.SetTextBuffer Method
Writes the text data to the specified text buffer.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function SetTextBuffer ( _
pTextBuffer As IVsTextLines _
) As Integer
int SetTextBuffer(
IVsTextLines pTextBuffer
)
int SetTextBuffer(
[InAttribute] IVsTextLines^ pTextBuffer
)
abstract SetTextBuffer :
pTextBuffer:IVsTextLines -> int
function SetTextBuffer(
pTextBuffer : IVsTextLines
) : int
Parameters
pTextBuffer
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextLines[in] Storage for textual data to be placed directly in the DocData.
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsTextBufferProvider::SetTextBuffer(
[in] IVsTextLines *pTextBuffer
);
.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.