Freigeben über


VsTextManagerClass.UnregisterIndependentView Method

Unregisters an externally-created view.

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

Syntax

'Declaration
Public Overridable Function UnregisterIndependentView ( _
    pUnk As Object, _
    pBuffer As IVsTextBuffer _
) As Integer
public virtual int UnregisterIndependentView(
    Object pUnk,
    IVsTextBuffer pBuffer
)
public:
virtual int UnregisterIndependentView(
    [InAttribute] Object^ pUnk, 
    [InAttribute] IVsTextBuffer^ pBuffer
)
abstract UnregisterIndependentView : 
        pUnk:Object * 
        pBuffer:IVsTextBuffer -> int 
override UnregisterIndependentView : 
        pUnk:Object * 
        pBuffer:IVsTextBuffer -> int 
public function UnregisterIndependentView(
    pUnk : Object, 
    pBuffer : IVsTextBuffer
) : int

Parameters

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

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsTextManager.UnregisterIndependentView(Object, IVsTextBuffer)

.NET Framework Security

See Also

Reference

VsTextManagerClass Class

Microsoft.VisualStudio.TextManager.Interop Namespace