Partilhar via


Método IVsFullTextScanner.FullTextRead

Executa a verificação real.

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

Sintaxe

'Declaração
Function FullTextRead ( _
    <OutAttribute> ByRef ppszText As String, _
    <OutAttribute> ByRef piLength As Integer _
) As Integer
int FullTextRead(
    out string ppszText,
    out int piLength
)
int FullTextRead(
    [OutAttribute] String^% ppszText, 
    [OutAttribute] int% piLength
)
abstract FullTextRead : 
        ppszText:string byref * 
        piLength:int byref -> int
function FullTextRead(
    ppszText : String, 
    piLength : int
) : int

Parâmetros

  • ppszText
    Tipo: String%

    [out] Ponteiro para o conteúdo do buffer de texto.

  • piLength
    Tipo: Int32%

    [out] Comprimento do texto apontada por *ppszText.

Valor de retorno

Tipo: Int32
Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.

Comentários

COM assinatura

De textmgr.idl:

HRESULT IVsFullTextScanner::FullTextRead(
   [out] WCHAR **ppszText,
   [out] long *piLength
);

Um ponteiro para um buffer de texto é retornado em ppszText parâmetro. O piLength parâmetro é preenchido com o comprimento do buffer apontado por *ppsztext.

Dica

O buffer de texto é criado pelo IVsFullTextScanner objeto e o buffer devem persistir durante a vida da IVsFullTextScanner objeto ou até que o CloseFullTextScan método é chamado.Se estiver implementando essa interface em código gerenciado e você precisar que o chamador dispose da seqüência de caracteres, implementar a IVsCoTaskMemFreeMyStrings interface na IVsFullTextScanner interface.

Segurança do .NET Framework

Consulte também

Referência

IVsFullTextScanner Interface

Namespace Microsoft.VisualStudio.TextManager.Interop