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