다음을 통해 공유


IVsTextManager.UnregisterBuffer(IVsTextBuffer) Method

Definition

Unregisters a buffer.

public:
 int UnregisterBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ pBuffer);
public:
 int UnregisterBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ pBuffer);
int UnregisterBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer const & pBuffer);
public int UnregisterBuffer (Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer pBuffer);
abstract member UnregisterBuffer : Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer -> int
Public Function UnregisterBuffer (pBuffer As IVsTextBuffer) As Integer

Parameters

pBuffer
IVsTextBuffer

[in] Pointer to the IVsTextBuffer interface that is being unregistered.

Returns

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

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextManager::UnregisterBuffer(  
   [in] IVsTextBuffer *pBuffer  
);  

All buffers must unregister with the text manager service to cancel receiving messages, such as change notifications.

Note

To avoid circular reference problems, this method should be called from the buffer's implementation of the method Close, which is called from the running document table.

Applies to