IVsTextBuffer.UnlockBuffer Method

Definition

Has no effect. Deprecated.

public:
 int UnlockBuffer();
public:
 int UnlockBuffer();
int UnlockBuffer();
public int UnlockBuffer ();
abstract member UnlockBuffer : unit -> int
Public Function UnlockBuffer () As Integer

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

Starting in Visual Studio 2010, you should access the text buffer on the UI thread, not on background threads. The text buffer no longer gets locked when you call LockBuffer or LockBufferEx. Similarly, the UnlockBuffer and UnlockBufferEx methods no longer have any effect.

COM Signature

From textmgr.idl:

HRESULT IVsTextBuffer::UnlockBuffer();  

Applies to