IVsFinder.Init 方法

将查找字符串。

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

语法

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

参数

  • grfOptions
    类型:UInt32

    [in] 包含查找可选的标志。 值从 __VSFINDOPTIONS 枚举中采用。

  • pszFindPattern
    类型:String

    [in] 搜索的模式。

  • fReinit
    类型:Int32

    [in] 新架构的 true 。

  • pResult
    类型:UInt32%

    [out]

返回值

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

备注

COM 签名

从 textfind.idl:

HRESULT IVsFinder::Init(
   [in] DWORD grfOptions,
   [in] LPCOLESTR pszFindPattern,
   [in] BOOL fReinit
);

IVsFinder.Init 将查找字符串,将其编译为适当的类型匹配的。 设置 fReinit 到 true ,在您知道您有一个不同的模式并希望将跳过架构缓存中。

.NET Framework 安全性

请参阅

参考

IVsFinder 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间