Compartir a través de


IVsFullTextScanner.FullTextRead(String, Int32) Method

Definition

Performs the actual scan.

public:
 int FullTextRead([Runtime::InteropServices::Out] System::String ^ % ppszText, [Runtime::InteropServices::Out] int % piLength);
int FullTextRead([Runtime::InteropServices::Out] std::wstring const & & ppszText, [Runtime::InteropServices::Out] int & piLength);
public int FullTextRead (out string ppszText, out int piLength);
abstract member FullTextRead : string * int -> int
Public Function FullTextRead (ByRef ppszText As String, ByRef piLength As Integer) As Integer

Parameters

ppszText
String

[out] Pointer to the contents of the text buffer.

piLength
Int32

[out] Length of text pointed to by *ppszText.

Returns

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

Remarks

COM Signature

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.

Applies to