IVsTextBufferProvider.LockTextBuffer Method
.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'宣告
Function LockTextBuffer ( _
fLock As Integer _
) As Integer
'用途
Dim instance As IVsTextBufferProvider
Dim fLock As Integer
Dim returnValue As Integer
returnValue = instance.LockTextBuffer(fLock)
int LockTextBuffer(
int fLock
)
int LockTextBuffer(
[InAttribute] int fLock
)
abstract LockTextBuffer :
fLock:int -> int
function LockTextBuffer(
fLock : int
) : int
Parameters
- fLock
Type: System.Int32
[in] Locks the text buffer to prevent editing.
Return Value
Type: System.Int32
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
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.