Compartir a través de


IVsTextBufferProvider.LockTextBuffer Method

Locks the text buffer to prevent editing.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function LockTextBuffer ( _
    fLock As Integer _
) As Integer
int LockTextBuffer(
    int fLock
)
int LockTextBuffer(
    [InAttribute] int fLock
)
abstract LockTextBuffer : 
        fLock:int -> int
function LockTextBuffer(
    fLock : int
) : int

Parameters

  • fLock
    Type: Int32

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

Return Value

Type: 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

See Also

Reference

IVsTextBufferProvider Interface

Microsoft.VisualStudio.Shell.Interop Namespace