IVsEditorAdaptersFactoryService.CreateVsTextBufferAdapterForSecondaryBuffer Method
Creates an IVsTextBuffer for the secondary buffer (used in IVsTextBufferCoordinator) for the specified ITextBuffer.
Namespace: Microsoft.VisualStudio.Editor
Assembly: Microsoft.VisualStudio.Editor (in Microsoft.VisualStudio.Editor.dll)
Syntax
'宣告
Function CreateVsTextBufferAdapterForSecondaryBuffer ( _
serviceProvider As IServiceProvider, _
secondaryBuffer As ITextBuffer _
) As IVsTextBuffer
IVsTextBuffer CreateVsTextBufferAdapterForSecondaryBuffer(
IServiceProvider serviceProvider,
ITextBuffer secondaryBuffer
)
IVsTextBuffer^ CreateVsTextBufferAdapterForSecondaryBuffer(
IServiceProvider^ serviceProvider,
ITextBuffer^ secondaryBuffer
)
abstract CreateVsTextBufferAdapterForSecondaryBuffer :
serviceProvider:IServiceProvider *
secondaryBuffer:ITextBuffer -> IVsTextBuffer
function CreateVsTextBufferAdapterForSecondaryBuffer(
serviceProvider : IServiceProvider,
secondaryBuffer : ITextBuffer
) : IVsTextBuffer
Parameters
- serviceProvider
Type: Microsoft.VisualStudio.OLE.Interop.IServiceProvider
The IServiceProvider with which to site the IVsTextBuffer.
- secondaryBuffer
Type: Microsoft.VisualStudio.Text.ITextBuffer
The ITextBuffer with which to create the IVsTextBuffer.
Return Value
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer
The new IVsTextBuffer.
.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.