设置与 IVsTextBufferCoordinator 适配器结合使用文本缓冲区适配器的数据缓冲区。
命名空间: Microsoft.VisualStudio.Editor
程序集: Microsoft.VisualStudio.Editor(在 Microsoft.VisualStudio.Editor.dll 中)
语法
声明
Sub SetDataBuffer ( _
bufferAdapter As IVsTextBuffer, _
dataBuffer As ITextBuffer _
)
void SetDataBuffer(
IVsTextBuffer bufferAdapter,
ITextBuffer dataBuffer
)
void SetDataBuffer(
IVsTextBuffer^ bufferAdapter,
ITextBuffer^ dataBuffer
)
abstract SetDataBuffer :
bufferAdapter:IVsTextBuffer *
dataBuffer:ITextBuffer -> unit
function SetDataBuffer(
bufferAdapter : IVsTextBuffer,
dataBuffer : ITextBuffer
)
参数
bufferAdapter
类型:IVsTextBuffer相关缓冲区适配器。
dataBuffer
类型:Microsoft.VisualStudio.Text.ITextBuffer新的数据缓冲区。
异常
异常 | 条件 |
---|---|
ArgumentNullException | bufferAdapter 为 nullnull 引用(在 Visual Basic 中为 Nothing) 或 dataBuffer 为 nullnull 引用(在 Visual Basic 中为 Nothing)。 |
ArgumentException | bufferAdapter 未生成的由该工厂。 |
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。