Partager via


IVsFindTarget.Find Method

Requests a text string search.

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

Syntax

'Déclaration
Function Find ( _
    pszSearch As String, _
    grfOptions As UInteger, _
    fResetStartPoint As Integer, _
    pHelper As IVsFindHelper, _
    <OutAttribute> ByRef pResult As UInteger _
) As Integer
'Utilisation
Dim instance As IVsFindTarget
Dim pszSearch As String
Dim grfOptions As UInteger
Dim fResetStartPoint As Integer
Dim pHelper As IVsFindHelper
Dim pResult As UInteger
Dim returnValue As Integer

returnValue = instance.Find(pszSearch, _
    grfOptions, fResetStartPoint, pHelper, _
    pResult)
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

Parameters

  • pszSearch
    Type: System.String
    [in] Pointer to a null terminated string containing the search text.
  • fResetStartPoint
    Type: System.Int32
    [in] Flag to reset the search start point.

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

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

This method is used only when GetSearchImage is not implemented.

.NET Framework Security

See Also

Reference

IVsFindTarget Interface

IVsFindTarget Members

Microsoft.VisualStudio.TextManager.Interop Namespace