IVsFinder.Init Method

Sets the find string.

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

Syntax

'Déclaration
Function Init ( _
    grfOptions As UInteger, _
    pszFindPattern As String, _
    fReinit As Integer, _
    <OutAttribute> ByRef pResult As UInteger _
) As Integer
'Utilisation
Dim instance As IVsFinder
Dim grfOptions As UInteger
Dim pszFindPattern As String
Dim fReinit As Integer
Dim pResult As UInteger
Dim returnValue As Integer

returnValue = instance.Init(grfOptions, _
    pszFindPattern, fReinit, pResult)
int Init(
    uint grfOptions,
    string pszFindPattern,
    int fReinit,
    out uint pResult
)
int Init(
    [InAttribute] unsigned int grfOptions, 
    [InAttribute] String^ pszFindPattern, 
    [InAttribute] int fReinit, 
    [OutAttribute] unsigned int% pResult
)
abstract Init : 
        grfOptions:uint32 * 
        pszFindPattern:string * 
        fReinit:int * 
        pResult:uint32 byref -> int 
function Init(
    grfOptions : uint, 
    pszFindPattern : String, 
    fReinit : int, 
    pResult : uint
) : int

Parameters

Return Value

Type: System.Int32
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.

.NET Framework Security

See Also

Reference

IVsFinder Interface

IVsFinder Members

Microsoft.VisualStudio.TextManager.Interop Namespace