返回环境的文本图像可以搜索。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
语法
声明
Function GetSearchImage ( _
grfOptions As UInteger, _
<OutAttribute> ppSpans As IVsTextSpanSet(), _
<OutAttribute> ByRef ppTextImage As IVsTextImage _
) As Integer
int GetSearchImage(
uint grfOptions,
IVsTextSpanSet[] ppSpans,
out IVsTextImage ppTextImage
)
int GetSearchImage(
[InAttribute] unsigned int grfOptions,
[OutAttribute] array<IVsTextSpanSet^>^ ppSpans,
[OutAttribute] IVsTextImage^% ppTextImage
)
abstract GetSearchImage :
grfOptions:uint32 *
ppSpans:IVsTextSpanSet[] byref *
ppTextImage:IVsTextImage byref -> int
function GetSearchImage(
grfOptions : uint,
ppSpans : IVsTextSpanSet[],
ppTextImage : IVsTextImage
) : int
参数
grfOptions
类型:UInt32[in] 指定 查找 和 替换 选项。 有关值列表,请参见 __VSFINDOPTIONS。
ppSpans
类型:array<Microsoft.VisualStudio.TextManager.Interop.IVsTextSpanSet[][out] 为 IVsTextSpanSet 接口的指针。
- ppTextImage
类型:Microsoft.VisualStudio.TextManager.Interop.IVsTextImage%
返回值
类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 textmgr.idl:
HRESULT IVsFindTarget::GetSearchImage(
[in] VSFINDOPTIONS grfOptions,
[out, custom(DE89D360-C06A-11d2-936C-D714766E8B50,"optional")] IVsTextSpanSet ** ppSpans
);
若要支持搜索,则必须实现 GetSearchImage 或 Find 和 Replace。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。