IVsFinder.Init(UInt32, String, Int32, UInt32) 方法

定义

设置查找字符串。

public:
 int Init(System::UInt32 grfOptions, System::String ^ pszFindPattern, int fReinit, [Runtime::InteropServices::Out] System::UInt32 % pResult);
int Init(unsigned int grfOptions, std::wstring const & pszFindPattern, int fReinit, [Runtime::InteropServices::Out] unsigned int & pResult);
public int Init (uint grfOptions, string pszFindPattern, int fReinit, out uint pResult);
abstract member Init : uint32 * string * int * uint32 -> int
Public Function Init (grfOptions As UInteger, pszFindPattern As String, fReinit As Integer, ByRef pResult As UInteger) As Integer

参数

grfOptions
UInt32

中包含查找选项的标志。 值取自 __VSFINDOPTIONS 枚举。

pszFindPattern
String

中要搜索的模式。

fReinit
Int32

[in] 对于新模式为 true。

pResult
UInt32

弄指示操作结果的枚举值。 值取自 __VSFINDERROR 枚举。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 textfind:

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

IVsFinder.Init 设置查找字符串,为相应的匹配类型编译该字符串。 fReinit如果你 true 知道具有不同的模式并且希望绕过模式缓存,则将设置为。

适用于