IVsFindTarget.Find, méthode

Demande une recherche de chaîne de texte.

Espace de noms :  Microsoft.VisualStudio.TextManager.Interop
Assembly :  Microsoft.VisualStudio.TextManager.Interop (dans Microsoft.VisualStudio.TextManager.Interop.dll)

Syntaxe

'Déclaration
Function Find ( _
    pszSearch As String, _
    grfOptions As UInteger, _
    fResetStartPoint As Integer, _
    pHelper As IVsFindHelper, _
    <OutAttribute> ByRef pResult As UInteger _
) As Integer
int Find(
    string pszSearch,
    uint grfOptions,
    int fResetStartPoint,
    IVsFindHelper pHelper,
    out uint pResult
)
int Find(
    [InAttribute] String^ pszSearch, 
    [InAttribute] unsigned int grfOptions, 
    [InAttribute] int fResetStartPoint, 
    [InAttribute] IVsFindHelper^ pHelper, 
    [OutAttribute] unsigned int% pResult
)
abstract Find : 
        pszSearch:string * 
        grfOptions:uint32 * 
        fResetStartPoint:int * 
        pHelper:IVsFindHelper * 
        pResult:uint32 byref -> int
function Find(
    pszSearch : String, 
    grfOptions : uint, 
    fResetStartPoint : int, 
    pHelper : IVsFindHelper, 
    pResult : uint
) : int

Paramètres

  • pszSearch
    Type : String

    [in] le pointeur à null a terminé la chaîne contenant le texte recherché.

  • grfOptions
    Type : UInt32

    [in] spécifie les options de recherche. Des valeurs sont prises de l'énumération d'__VSFINDOPTIONS.

  • fResetStartPoint
    Type : Int32

    [in] balise pour réinitialiser le point de départ de recherche.

  • pResult
    Type : UInt32%

    [out] pointeur aux résultats de la recherche. Des valeurs sont prises de l'énumération d'__VSFINDRESULT.

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 textmgr.idl :

HRESULT IVsFindTarget::Find(
   [in] LPCOLESTR pszSearch,
   [in] VSFINDOPTIONS grfOptions,
   [in] BOOL fResetStartPoint,
   [in] IVsFindHelper * pHelper
);

Cette méthode est utilisée uniquement lorsque l'GetSearchImage n'est pas implémenté.

Sécurité .NET Framework

Voir aussi

Référence

IVsFindTarget Interface

Microsoft.VisualStudio.TextManager.Interop, espace de noms