Condividi tramite


Metodo IVsFinder.Init

Imposta la stringa di ricerca.

Spazio dei nomi:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Sintassi

'Dichiarazione
Function Init ( _
    grfOptions As UInteger, _
    pszFindPattern As String, _
    fReinit As Integer, _
    <OutAttribute> ByRef pResult As UInteger _
) As Integer
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

Parametri

  • grfOptions
    Tipo: UInt32

    [in] Flag che contiene le opzioni di ricerca. I valori vengono ricavati da __VSFINDOPTIONS enumerazione.

  • pszFindPattern
    Tipo: String

    [in] modello da cercare.

  • fReinit
    Tipo: Int32

    [in] true per un nuovo modello.

  • pResult
    Tipo: UInt32%

    [out]

Valore restituito

Tipo: Int32
Se il metodo ha esito positivo, restituisce S_OK.Se non riesce, restituisce un codice di errore.

Note

Firma COM

da textfind.idl:

HRESULT IVsFinder::Init(
   [in] DWORD grfOptions,
   [in] LPCOLESTR pszFindPattern,
   [in] BOOL fReinit
);

IVsFinder.Init imposta la stringa di ricerca, compila la per il tipo appropriato di corrispondenza. set fReinit in true quando si dispone di un modello diverso e si desidera ignorare la cache del modello.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

IVsFinder Interfaccia

Spazio dei nomi Microsoft.VisualStudio.TextManager.Interop