IVsTextManager.UnregisterIndependentView(Object, IVsTextBuffer) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Unregisters an externally-created view.
public:
int UnregisterIndependentView(System::Object ^ pUnk, Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ pBuffer);
public:
int UnregisterIndependentView(Platform::Object ^ pUnk, Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ pBuffer);
int UnregisterIndependentView(winrt::Windows::Foundation::IInspectable const & pUnk, Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer const & pBuffer);
public int UnregisterIndependentView (object pUnk, Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer pBuffer);
abstract member UnregisterIndependentView : obj * Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer -> int
Public Function UnregisterIndependentView (pUnk As Object, pBuffer As IVsTextBuffer) As Integer
Parameters
- pUnk
- Object
[in] Pointer to the IUnknown interface. Use this parameter to AddRef and Release the view so that the buffer is not freed in advance of the view.
- pBuffer
- IVsTextBuffer
[in] Pointer to the IVsTextBuffer interface associated with the view.
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::UnregisterIndependentView(
[in] IUnknown *pUnk,
[in] IVsTextBuffer *pBuffer
);
Use RegisterIndependentView to register an external view with the text buffer.