Condividi tramite


IVsTextManager.UnregisterBuffer Method

Unregisters a buffer.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Dichiarazione
Function UnregisterBuffer ( _
    pBuffer As IVsTextBuffer _
) As Integer
int UnregisterBuffer(
    IVsTextBuffer pBuffer
)
int UnregisterBuffer(
    [InAttribute] IVsTextBuffer^ pBuffer
)
abstract UnregisterBuffer : 
        pBuffer:IVsTextBuffer -> int 
function UnregisterBuffer(
    pBuffer : IVsTextBuffer
) : int

Parameters

Return Value

Type: System.Int32
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.

.NET Framework Security

See Also

Reference

IVsTextManager Interface

Microsoft.VisualStudio.TextManager.Interop Namespace