Partager via


VsTextBufferCoordinatorClass.GetPrimaryBuffer Method

Returns the primary language buffer.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

'Declaration
Public Overridable Function GetPrimaryBuffer ( _
    <OutAttribute> ByRef ppBuffer As IVsTextLines _
) As Integer
public virtual int GetPrimaryBuffer(
    out IVsTextLines ppBuffer
)
public:
virtual int GetPrimaryBuffer(
    [OutAttribute] IVsTextLines^% ppBuffer
)
abstract GetPrimaryBuffer : 
        ppBuffer:IVsTextLines byref -> int  
override GetPrimaryBuffer : 
        ppBuffer:IVsTextLines byref -> int
public function GetPrimaryBuffer(
    ppBuffer : IVsTextLines
) : int

Parameters

Return Value

Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.

Implements

IVsTextBufferCoordinator.GetPrimaryBuffer(IVsTextLines%)

.NET Framework Security

See Also

Reference

VsTextBufferCoordinatorClass Class

Microsoft.VisualStudio.TextManager.Interop Namespace