,当视图附加到新的缓冲区时,将通知客户端。
命名空间: 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
)
参数
pView
类型:Microsoft.VisualStudio.TextManager.Interop.IVsTextView[in] 为 IVsTextView 接口的指针。
pBuffer
类型:Microsoft.VisualStudio.TextManager.Interop.IVsTextLines[in] 为 IVsTextLines 接口的指针。
备注
COM 签名
从 textmgr.idl:
HRESULT IVsTextViewEvents::OnSetBuffer(
[in] IVsTextView *pView,
[in] IVsTextLines *pBuffer
);
,当您获取指向 IVsTextView 和 IVsTextLines时,引用计数不递增;如果要保存它,请显式调用其 AddRef 。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。