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

定义

设置查找字符串。

public:
 virtual int Init(System::UInt32 grfOptions, System::String ^ pszFindPattern, int fReinit, [Runtime::InteropServices::Out] System::UInt32 % pResult) = Microsoft::VisualStudio::TextManager::Interop::IVsFinder::Init;
 virtual int Init(unsigned int grfOptions, std::wstring const & pszFindPattern, int fReinit, [Runtime::InteropServices::Out] unsigned int & pResult);
public virtual int Init (uint grfOptions, string pszFindPattern, int fReinit, out uint pResult);
abstract member Init : uint32 * string * int * uint32 -> int
override this.Init : uint32 * string * int * uint32 -> int
Public Overridable 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。 如果该方法失败,则会返回错误代码。

实现

适用于