Compartir a través de


IVsTextBufferCoordinator.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
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

Parameters

Return Value

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

Remarks

COM Signature

From singlefileeditor.idl:

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

.NET Framework Security

See Also

Reference

IVsTextBufferCoordinator Interface

Microsoft.VisualStudio.TextManager.Interop Namespace