IVsTextBuffer.UnlockBuffer, méthode

N'a aucun effet. Déconseillé.

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

Syntaxe

'Déclaration
Function UnlockBuffer As Integer
int UnlockBuffer()
int UnlockBuffer()
abstract UnlockBuffer : unit -> int
function UnlockBuffer() : int

Valeur de retour

Type : Int32
Si la méthode réussit, elle retourne S_OK.En cas d'échec, un code d'erreur est retourné.

Notes

À compter de Visual Studio 2010, vous devez accéder à la mémoire tampon de texte sur le thread d'interface utilisateur, pas sur les thread d'arrière-plan. La mémoire tampon de texte n'est plus verrouillée lorsque vous appelez LockBuffer ou LockBufferEx. De même, UnlockBuffer et les méthodes d'UnlockBufferEx n'ont plus tout effet.

Signature de COM

De textmgr.idl :

HRESULT IVsTextBuffer::UnlockBuffer();

Sécurité .NET Framework

Voir aussi

Référence

IVsTextBuffer Interface

Microsoft.VisualStudio.TextManager.Interop, espace de noms