次の方法で共有


IVsTextImage.LockImage Method

Notifies that the text image is in use.

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

Syntax

'宣言
Function LockImage ( _
    grfLock As UInteger _
) As Integer
'使用
Dim instance As IVsTextImage
Dim grfLock As UInteger
Dim returnValue As Integer

returnValue = instance.LockImage(grfLock)
int LockImage(
    uint grfLock
)
int LockImage(
    [InAttribute] unsigned int grfLock
)
abstract LockImage : 
        grfLock:uint32 -> int 
function LockImage(
    grfLock : uint
) : int

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

The environment notifies you that it is locking a text image. You must not make modifications while the lock is on. Once a lock is no longer needed, the environment will call UnlockImage to release the lock.

COM Signature

From textmgr.idl:

HRESULT IVsTextImage::LockImage(
   [in] DWORD grfLock
);

.NET Framework Security

See Also

Reference

IVsTextImage Interface

IVsTextImage Members

Microsoft.VisualStudio.TextManager.Interop Namespace