Partager via


IVsEditorAdaptersFactoryService.SetDataBuffer Method

Definition

Set the DataBuffer of an IVsTextBuffer adapter that is being used together with an IVsTextBufferCoordinator adapter.

public:
 void SetDataBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ bufferAdapter, Microsoft::VisualStudio::Text::ITextBuffer ^ dataBuffer);
public:
 void SetDataBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ bufferAdapter, Microsoft::VisualStudio::Text::ITextBuffer ^ dataBuffer);
void SetDataBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer const & bufferAdapter, Microsoft::VisualStudio::Text::ITextBuffer const & dataBuffer);
public void SetDataBuffer (Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer bufferAdapter, Microsoft.VisualStudio.Text.ITextBuffer dataBuffer);
abstract member SetDataBuffer : Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer * Microsoft.VisualStudio.Text.ITextBuffer -> unit
Public Sub SetDataBuffer (bufferAdapter As IVsTextBuffer, dataBuffer As ITextBuffer)

Parameters

bufferAdapter
IVsTextBuffer

The buffer adapter of interest.

dataBuffer
ITextBuffer

The new data buffer.

Exceptions

dataBufferis null.

bufferAdapter does not contain VsTextDocData.

Applies to