Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
- 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.