IVsFindTarget.Find 方法

请求文本字符串搜索。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
Function Find ( _
    pszSearch As String, _
    grfOptions As UInteger, _
    fResetStartPoint As Integer, _
    pHelper As IVsFindHelper, _
    <OutAttribute> ByRef pResult As UInteger _
) As Integer
int Find(
    string pszSearch,
    uint grfOptions,
    int fResetStartPoint,
    IVsFindHelper pHelper,
    out uint pResult
)
int Find(
    [InAttribute] String^ pszSearch, 
    [InAttribute] unsigned int grfOptions, 
    [InAttribute] int fResetStartPoint, 
    [InAttribute] IVsFindHelper^ pHelper, 
    [OutAttribute] unsigned int% pResult
)
abstract Find : 
        pszSearch:string * 
        grfOptions:uint32 * 
        fResetStartPoint:int * 
        pHelper:IVsFindHelper * 
        pResult:uint32 byref -> int
function Find(
    pszSearch : String, 
    grfOptions : uint, 
    fResetStartPoint : int, 
    pHelper : IVsFindHelper, 
    pResult : uint
) : int

参数

  • pszSearch
    类型:String

    [in] 为 null 指针已停止包含搜索的文本字符串。

  • grfOptions
    类型:UInt32

    [in] 指定选项。 值从 __VSFINDOPTIONS 枚举中采用。

  • fResetStartPoint
    类型:Int32

    [in] 标记重置搜索的起点。

  • pResult
    类型:UInt32%

    [out] 要搜索的结果的指针。 值从 __VSFINDRESULT 枚举中采用。

返回值

类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 textmgr.idl:

HRESULT IVsFindTarget::Find(
   [in] LPCOLESTR pszSearch,
   [in] VSFINDOPTIONS grfOptions,
   [in] BOOL fResetStartPoint,
   [in] IVsFindHelper * pHelper
);

此方法,仅当 GetSearchImage 未实现时,使用。

.NET Framework 安全性

请参阅

参考

IVsFindTarget 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间