IVsEditorAdaptersFactoryService.SetDataBuffer Method
Sets the data buffer of a text buffer adapter that is being used together with an IVsTextBufferCoordinator adapter.
Namespace: Microsoft.VisualStudio.Editor
Assembly: Microsoft.VisualStudio.Editor (in Microsoft.VisualStudio.Editor.dll)
Syntax
'宣告
Sub SetDataBuffer ( _
bufferAdapter As IVsTextBuffer, _
dataBuffer As ITextBuffer _
)
void SetDataBuffer(
IVsTextBuffer bufferAdapter,
ITextBuffer dataBuffer
)
void SetDataBuffer(
IVsTextBuffer^ bufferAdapter,
ITextBuffer^ dataBuffer
)
abstract SetDataBuffer :
bufferAdapter:IVsTextBuffer *
dataBuffer:ITextBuffer -> unit
function SetDataBuffer(
bufferAdapter : IVsTextBuffer,
dataBuffer : ITextBuffer
)
Parameters
- bufferAdapter
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer
The buffer adapter of interest.
- dataBuffer
Type: Microsoft.VisualStudio.Text.ITextBuffer
The new data buffer.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | bufferAdapter is nulla null reference (Nothing in Visual Basic) or dataBuffer is nulla null reference (Nothing in Visual Basic). |
ArgumentException | bufferAdapter was not produced by this factory. |
.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.