IVsEditorAdaptersFactoryService.GetDataBuffer Method
Get the data buffer of a text buffer adapter. This is the top buffer of the data model buffer graph.
Namespace: Microsoft.VisualStudio.Editor
Assembly: Microsoft.VisualStudio.Editor (in Microsoft.VisualStudio.Editor.dll)
Syntax
'Déclaration
Function GetDataBuffer ( _
bufferAdapter As IVsTextBuffer _
) As ITextBuffer
ITextBuffer GetDataBuffer(
IVsTextBuffer bufferAdapter
)
ITextBuffer^ GetDataBuffer(
IVsTextBuffer^ bufferAdapter
)
abstract GetDataBuffer :
bufferAdapter:IVsTextBuffer -> ITextBuffer
function GetDataBuffer(
bufferAdapter : IVsTextBuffer
) : ITextBuffer
Parameters
- bufferAdapter
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer
The IVsTextBuffer adapter of interest.
Return Value
Type: Microsoft.VisualStudio.Text.ITextBuffer
The ITextBuffer data buffer that is presented to the view model, or nulla null reference (Nothing in Visual Basic) if this method is called before content has been established for the adapter.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | bufferAdapter is null. |
ArgumentException | bufferAdapter was not produced by this factory. |
Remarks
This buffer will be the same as the document buffer, except in buffer coordinator scenarios.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.