Partilhar via


Método IVsExpansionIntellisenseHost.GetText

Retorna o texto da extensão do texto de expansão.

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

Sintaxe

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

Parâmetros

  • bstrText
    Tipo: String%

    [out] A seqüência de caracteres que contém o texto de expansão.

Valor de retorno

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

Comentários

C++

De singlefileeditor.idl:

HRESULT IVsExpansionIntellisenseHost::GetText([out] BSTR *bstrText);

Segurança do .NET Framework

Consulte também

Referência

IVsExpansionIntellisenseHost Interface

Namespace Microsoft.VisualStudio.TextManager.Interop