Partager via


IVsTextBufferCoordinator.GetPrimaryBuffer, méthode

Retourne la mémoire tampon de langue principale.

Espace de noms :  Microsoft.VisualStudio.TextManager.Interop
Assembly :  Microsoft.VisualStudio.TextManager.Interop.8.0 (dans Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntaxe

'Déclaration
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

Paramètres

Valeur de retour

Type : Int32
Si réussi, retours S_OK ; sinon, retours code d'erreur.

Notes

Signature de COM

De singlefileeditor.idl :

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

Sécurité .NET Framework

Voir aussi

Référence

IVsTextBufferCoordinator Interface

Microsoft.VisualStudio.TextManager.Interop, espace de noms