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

'Declaration
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

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

See Also

Reference

IVsEditorAdaptersFactoryService Interface

Microsoft.VisualStudio.Editor Namespace