IVsTextBufferProvider.SetTextBuffer Method
.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
声明
Function SetTextBuffer ( _
pTextBuffer As IVsTextLines _
) As Integer
用法
Dim instance As IVsTextBufferProvider
Dim pTextBuffer As IVsTextLines
Dim returnValue As Integer
returnValue = instance.SetTextBuffer(pTextBuffer)
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: System.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.