IVsPreviewChangesList.GetText(UInt32, VSTREETEXTOPTIONS, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回预览列表中指定项的指定文本。
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
中要为其获取文本的项的索引。
中 VSTREETEXTOPTIONS 描述要返回的文本类型的结构。
- ppszText
- String
弄返回一个字符串,其中包含所请求的文本。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell80:
HRESULT IVsPreviewChangesList::GetText(
[in] ULONG Index,
[in] VSTREETEXTOPTIONS tto,
[out] const WCHAR **ppszText
);
请注意,出于性能原因,返回的字符串在对象的生命周期内必须保持不变 IVsPreviewChangesList 。