IVsFullTextScanner::FullTextRead Method (String^, Int32)
Performs the actual scan.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Parameters
- ppszText
-
Type:
System::String^
[out] Pointer to the contents of the text buffer.
- piLength
-
Type:
System::Int32
[out] Length of text pointed to by *ppszText.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
HRESULT IVsFullTextScanner::FullTextRead(
[out] WCHAR **ppszText,
[out] long *piLength
);
A pointer to a text buffer is returned in ppszText parameter. The piLength parameter is then filled with the length of the buffer pointed to by *ppsztext.
Note |
|---|
The text buffer is created by the IVsFullTextScanner object and the buffer must persist for the life of the IVsFullTextScanner object or until the CloseFullTextScan method is called. If you are implementing this interface in managed code and you need the caller to dispose of the string, implement the IVsCoTaskMemFreeMyStrings interface on the IVsFullTextScanner interface. |
