Partilhar via


Método IVsPersistentTextImage.Image_FullTextRead

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

Sintaxe

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

Parâmetros

  • ppszText
    Tipo: String%

    [out]

  • piLength
    Tipo: Int32%

    [out]

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 IVsPersistentTextImage::Image_FullTextRead(
   [out] const WCHAR **ppszText,
   [out] long *piLength
);

Dica

O buffer de texto é criado pelo IVsPersistentTextImage objeto e o buffer devem persistir durante a vida da IVsPersistentTextImage objeto ou até que o Image_CloseFullTextScan método é chamado.

Se você estiver implementando essa interface em código gerenciado e você precisa ter a seqüência de caracteres alienado pelo chamador, implementar a IVsCoTaskMemFreeMyStrings interface na IVsPersistentTextImage interface.

Segurança do .NET Framework

Consulte também

Referência

IVsPersistentTextImage Interface

Namespace Microsoft.VisualStudio.TextManager.Interop