VsFinderClass::Init Method (UInt32, String^, Int32, UInt32)

 

Sets the find string.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

public:
virtual int Init(
	unsigned int grfOptions,
	String^ pszFindPattern,
	int fReinit,
	[OutAttribute] unsigned int% pResult
)

Parameters

grfOptions
Type: System::UInt32

[in] Flag containing find options. Values are taken from the __VSFINDOPTIONS enum.

pszFindPattern
Type: System::String^

[in] Pattern to search for.

fReinit
Type: System::Int32

[in] true for a new pattern.

pResult
Type: System::UInt32

[out] Enumeration value indicating result of the operation. Values are taken from the __VSFINDERROR enum.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Return to top
Show: