次の方法で共有


IVsTextManager.UnregisterIndependentView Method

Unregisters an externally-created view.

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

Syntax

'宣言
Function UnregisterIndependentView ( _
    pUnk As Object, _
    pBuffer As IVsTextBuffer _
) As Integer
'使用
Dim instance As IVsTextManager
Dim pUnk As Object
Dim pBuffer As IVsTextBuffer
Dim returnValue As Integer

returnValue = instance.UnregisterIndependentView(pUnk, _
    pBuffer)
int UnregisterIndependentView(
    Object pUnk,
    IVsTextBuffer pBuffer
)
int UnregisterIndependentView(
    [InAttribute] Object^ pUnk, 
    [InAttribute] IVsTextBuffer^ pBuffer
)
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.

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.

Permissions

See Also

Reference

IVsTextManager Interface

IVsTextManager Members

Microsoft.VisualStudio.TextManager.Interop Namespace