IVsTextBufferProvider.LockTextBuffer Method

.

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

See Also

Reference

IVsTextBufferProvider Interface

Microsoft.VisualStudio.Shell.Interop Namespace