IVsFinder.Init(UInt32, String, Int32, UInt32) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Définit la chaîne de recherche.
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
Paramètres
- grfOptions
- UInt32
[in] Indicateur contenant des options de recherche. Les valeurs proviennent de l'énumération __VSFINDOPTIONS.
- pszFindPattern
- String
[in] Modèle à rechercher.
- fReinit
- Int32
[in] true pour un nouveau modèle.
- pResult
- UInt32
à Valeur d’énumération indiquant le résultat de l’opération. Les valeurs proviennent de l'énumération __VSFINDERROR.
Retours
Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.
Remarques
Signature COM
À partir de textfind. idl :
HRESULT IVsFinder::Init(
[in] DWORD grfOptions,
[in] LPCOLESTR pszFindPattern,
[in] BOOL fReinit
);
IVsFinder.Init définit la chaîne de recherche, en la compilant pour le type correspondant approprié. Affectez fReinit true la valeur lorsque vous savez que vous avez un modèle différent et que vous souhaitez contourner le cache de modèle.