IVsFullTextScanner::FullTextRead Method (String^, Int32)

 

Performs the actual scan.

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

int FullTextRead(
	[OutAttribute] String^% ppszText,
	[OutAttribute] int% piLength
)

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::Int32

If 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.

System_CAPS_noteNote

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.

Return to top
Show: