다음을 통해 공유


IVsTextBufferProvider.LockTextBuffer(Int32) Method

Definition

Locks the text buffer to prevent editing.

public:
 int LockTextBuffer(int fLock);
public:
 int LockTextBuffer(int fLock);
int LockTextBuffer(int fLock);
public int LockTextBuffer (int fLock);
abstract member LockTextBuffer : int -> int
Public Function LockTextBuffer (fLock As Integer) As Integer

Parameters

fLock
Int32

[in] Set to true to lock the text buffer, or false to unlock the text buffer.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsTextBufferProvider::LockTextBuffer(  
   [in] BOOL fLock  
);  

Applies to