IVsFinder.Init(UInt32, String, Int32, UInt32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the find string.
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
Parameters
- grfOptions
- UInt32
[in] Flag containing find options. Values are taken from the __VSFINDOPTIONS enum.
- pszFindPattern
- String
[in] Pattern to search for.
- fReinit
- Int32
[in] true for a new pattern.
- pResult
- UInt32
[out] Enumeration value indicating result of the operation. Values are taken from the __VSFINDERROR enum.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From textfind.idl:
HRESULT IVsFinder::Init(
[in] DWORD grfOptions,
[in] LPCOLESTR pszFindPattern,
[in] BOOL fReinit
);
IVsFinder.Init
sets the find string, compiling it for the appropriate matching type. Set fReinit
to true
when you know you have a different pattern and want to bypass the pattern cache.