Compartilhar via


VsTextManagerClass.RegisterBuffer(IVsTextBuffer) Method

Definition

Registers a text buffer with the text manager.

public:
 virtual int RegisterBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ pBuffer) = Microsoft::VisualStudio::TextManager::Interop::IVsTextManager::RegisterBuffer;
public:
 virtual int RegisterBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ pBuffer);
public:
 virtual int RegisterBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ pBuffer) = Microsoft::VisualStudio::TextManager::Interop::IVsTextManager::RegisterBuffer;
 virtual int RegisterBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer const & pBuffer);
public virtual int RegisterBuffer (Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer pBuffer);
abstract member RegisterBuffer : Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer -> int
override this.RegisterBuffer : Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer -> int
Public Overridable Function RegisterBuffer (pBuffer As IVsTextBuffer) As Integer

Parameters

pBuffer
IVsTextBuffer

[in] Pointer to the IVsTextBuffer interface to register.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Applies to