IVsPreviewChangesList.GetText(UInt32, VSTREETEXTOPTIONS, String) Método

Definição

Retorna o texto especificado para o item especificado na lista de visualização.

public:
 int GetText(System::UInt32 index, Microsoft::VisualStudio::Shell::Interop::VSTREETEXTOPTIONS tto, [Runtime::InteropServices::Out] System::String ^ % ppszText);
int GetText(unsigned int index, Microsoft::VisualStudio::Shell::Interop::VSTREETEXTOPTIONS tto, [Runtime::InteropServices::Out] std::wstring const & & ppszText);
public int GetText (uint index, Microsoft.VisualStudio.Shell.Interop.VSTREETEXTOPTIONS tto, out string ppszText);
abstract member GetText : uint32 * Microsoft.VisualStudio.Shell.Interop.VSTREETEXTOPTIONS * string -> int
Public Function GetText (index As UInteger, tto As VSTREETEXTOPTIONS, ByRef ppszText As String) As Integer

Parâmetros

index
UInt32

no O índice do item para o qual obter texto.

tto
VSTREETEXTOPTIONS

no Uma VSTREETEXTOPTIONS estrutura que descreve o tipo de texto a ser retornado.

ppszText
String

fora Retorna uma cadeia de caracteres que contém o texto solicitado.

Retornos

Int32

Se o método for bem-sucedido, retornará S_OK. Se falhar, retornará um código de erro.

Comentários

Assinatura COM

De vsshell80. idl:

HRESULT IVsPreviewChangesList::GetText(  
   [in]  ULONG              Index,   
   [in]  VSTREETEXTOPTIONS  tto,   
   [out] const WCHAR      **ppszText  
);  

Observe que, por motivos de desempenho, a cadeia de caracteres retornada deve persistir durante a vida útil do IVsPreviewChangesList objeto.

Aplica-se a