VsTextManagerClass.RegisterIndependentView(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.
Registers a view from a source other than the core editor.
public:
virtual int RegisterIndependentView(System::Object ^ pUnk, Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ pBuffer) = Microsoft::VisualStudio::TextManager::Interop::IVsTextManager::RegisterIndependentView;
public:
virtual int RegisterIndependentView(System::Object ^ pUnk, Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ pBuffer);
public:
virtual int RegisterIndependentView(Platform::Object ^ pUnk, Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ pBuffer) = Microsoft::VisualStudio::TextManager::Interop::IVsTextManager::RegisterIndependentView;
virtual int RegisterIndependentView(winrt::Windows::Foundation::IInspectable const & pUnk, Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer const & pBuffer);
public virtual int RegisterIndependentView (object pUnk, Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer pBuffer);
abstract member RegisterIndependentView : obj * Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer -> int
override this.RegisterIndependentView : obj * Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer -> int
Public Overridable Function RegisterIndependentView (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.