IVsTextBufferProvider.LockTextBuffer(Int32) 方法

定义

锁定文本缓冲区以防止编辑。

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

参数

fLock
Int32

中设置为 true 可锁定文本缓冲区,或 false 用于解锁文本缓冲区。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 vsshell:

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

适用于