IVsTextViewEvents.OnSetBuffer 方法

,当视图附加到新的缓冲区时,将通知客户端。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
Sub OnSetBuffer ( _
    pView As IVsTextView, _
    pBuffer As IVsTextLines _
)
void OnSetBuffer(
    IVsTextView pView,
    IVsTextLines pBuffer
)
void OnSetBuffer(
    [InAttribute] IVsTextView^ pView, 
    [InAttribute] IVsTextLines^ pBuffer
)
abstract OnSetBuffer : 
        pView:IVsTextView * 
        pBuffer:IVsTextLines -> unit
function OnSetBuffer(
    pView : IVsTextView, 
    pBuffer : IVsTextLines
)

参数

备注

COM 签名

从 textmgr.idl:

HRESULT IVsTextViewEvents::OnSetBuffer(
   [in] IVsTextView *pView,
   [in] IVsTextLines *pBuffer
);

,当您获取指向 IVsTextViewIVsTextLines时,引用计数不递增;如果要保存它,请显式调用其 AddRef

.NET Framework 安全性

请参阅

参考

IVsTextViewEvents 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间