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
ppBuffer
Type : Microsoft.VisualStudio.TextManager.Interop.IVsTextLines%[] retourne un objet d'IVsTextLines qui représente la mémoire tampon primaire.
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
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, voir Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.