IVsPreviewChangesList.GetText(UInt32, VSTREETEXTOPTIONS, String) 方法

定义

返回预览列表中指定项的指定文本。

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

参数

index
UInt32

中要为其获取文本的项的索引。

tto
VSTREETEXTOPTIONS

VSTREETEXTOPTIONS 描述要返回的文本类型的结构。

ppszText
String

弄返回一个字符串,其中包含所请求的文本。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 vsshell80:

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

请注意,出于性能原因,返回的字符串在对象的生命周期内必须保持不变 IVsPreviewChangesList

适用于