共用方式為


IVsTextBuffer.LockBufferEx(UInt32) Method

Definition

Has no effect. Deprecated.

public:
 int LockBufferEx(System::UInt32 dwFlags);
public:
 int LockBufferEx(unsigned int dwFlags);
int LockBufferEx(unsigned int dwFlags);
public int LockBufferEx (uint dwFlags);
abstract member LockBufferEx : uint32 -> int
Public Function LockBufferEx (dwFlags As UInteger) As Integer

Parameters

dwFlags
UInt32

Has no effect. Deprecated.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

Starting in Visual Studio 2010, you should access the text buffer on the UI thread, not on background threads. The text buffer no longer gets locked when you call LockBuffer or LockBufferEx. Similarly, the UnlockBuffer and UnlockBufferEx methods no longer have any effect.

COM Signature

From textmgr.idl:

HRESULT IVsTextBuffer::LockBufferEx(  
   [in] DWORD dwFlags  
);  

Applies to