共用方式為


VsFinderClass.Init(UInt32, String, Int32, UInt32) Method

Definition

Sets the find string.

public:
 virtual int Init(System::UInt32 grfOptions, System::String ^ pszFindPattern, int fReinit, [Runtime::InteropServices::Out] System::UInt32 % pResult) = Microsoft::VisualStudio::TextManager::Interop::IVsFinder::Init;
public:
 virtual int Init(System::UInt32 grfOptions, System::String ^ pszFindPattern, int fReinit, [Runtime::InteropServices::Out] System::UInt32 % pResult);
 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

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.

Implements

Applies to