共用方式為


IVsTextScanner.OpenScan Method

Definition

Opens the text buffer for scanning.

public:
 int OpenScan();
public:
 int OpenScan();
int OpenScan();
public int OpenScan ();
abstract member OpenScan : unit -> int
Public Function OpenScan () As Integer

Returns

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

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextScanner::OpenScan();  

This method locks the buffer and does a garbage-collection pass, which is expensive, so one should not use this in a QueryStatus handler or other speed-intensive scenario.

Applies to