IVsFinder.Init, méthode
Définit la chaîne de recherche.
Espace de noms : Microsoft.VisualStudio.TextManager.Interop
Assembly : Microsoft.VisualStudio.TextManager.Interop (dans Microsoft.VisualStudio.TextManager.Interop.dll)
Syntaxe
'Déclaration
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
Paramètres
grfOptions
Type : UInt32[in] balise contenant des options de recherche. Des valeurs sont prises de l'enum d'__VSFINDOPTIONS.
pszFindPattern
Type : String[in] modèle à le rechercher pour.
fReinit
Type : Int32[in] true pour un nouveau modèle.
pResult
Type : UInt32%[out]
Valeur de retour
Type : Int32
Si la méthode réussit, elle retourne S_OK.En cas d'échec, un code d'erreur est retourné.
Notes
Signature de COM
De textfind.idl :
HRESULT IVsFinder::Init(
[in] DWORD grfOptions,
[in] LPCOLESTR pszFindPattern,
[in] BOOL fReinit
);
IVsFinder.Init définit la chaîne de recherche, la compilant pour le type approprié de correspondance. Définissez fReinit à true lorsque vous connaissez vous avez un modèle différent et souhaitez ignorer le cache de modèle.
Sécurité .NET Framework
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, voir Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.