Поделиться через


IVsTextBufferCoordinator.GetPrimaryBuffer - метод

Возвращает буфер основной язык.

Пространство имен:  Microsoft.VisualStudio.TextManager.Interop
Сборка:  Microsoft.VisualStudio.TextManager.Interop.8.0 (в Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Синтаксис

'Декларация
Function GetPrimaryBuffer ( _
    <OutAttribute> ByRef ppBuffer As IVsTextLines _
) As Integer
int GetPrimaryBuffer(
    out IVsTextLines ppBuffer
)
int GetPrimaryBuffer(
    [OutAttribute] IVsTextLines^% ppBuffer
)
abstract GetPrimaryBuffer : 
        ppBuffer:IVsTextLines byref -> int
function GetPrimaryBuffer(
    ppBuffer : IVsTextLines
) : int

Параметры

Возвращаемое значение

Тип: Int32
В случае успеха возвращает S_OK; в противном случае возвращает код ошибки.

Заметки

Модель COM подписи

Из singlefileeditor.idl:

HRESULT GetPrimaryBuffer(
   [out] IVsTextLines **ppBuffer
);

Безопасность платформы .NET Framework

См. также

Ссылки

IVsTextBufferCoordinator Интерфейс

Microsoft.VisualStudio.TextManager.Interop - пространство имен