IVsSimplePreviewChangesList.GetTipTextWithOwnership 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回预览列表中指定项的工具提示文本。
public:
int GetTipTextWithOwnership(System::UInt32 index, Microsoft::VisualStudio::Shell::Interop::VSTREETOOLTIPTYPE eTipType, [Runtime::InteropServices::Out] System::String ^ % pbstrText);
int GetTipTextWithOwnership(unsigned int index, Microsoft::VisualStudio::Shell::Interop::VSTREETOOLTIPTYPE eTipType, [Runtime::InteropServices::Out] std::wstring const & & pbstrText);
public int GetTipTextWithOwnership (uint index, Microsoft.VisualStudio.Shell.Interop.VSTREETOOLTIPTYPE eTipType, out string pbstrText);
abstract member GetTipTextWithOwnership : uint32 * Microsoft.VisualStudio.Shell.Interop.VSTREETOOLTIPTYPE * string -> int
Public Function GetTipTextWithOwnership (index As UInteger, eTipType As VSTREETOOLTIPTYPE, ByRef pbstrText As String) As Integer
参数
- index
- UInt32
中要为其获取工具提示文本的项的索引。
- eTipType
- VSTREETOOLTIPTYPE
中一个来自枚举的值,该值 VSTREETOOLTIPTYPE 指定要返回的工具提示文本的类型。
- pbstrText
- String
弄返回一个字符串,该字符串包含工具提示文本。
返回
如果方法成功,则返回 S_OK 。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell80:
HRESULT IVsSimplePreviewChangesList::GetTipTextWithOwnership(
[in] ULONG Index,
[in] VSTREETOOLTIPTYPE eTipType,
[out] BSTR *ppszText
);