次の方法で共有


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

'宣言
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

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

Implement either GetSearchImage method or Find and Replace methods.

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

Microsoft.VisualStudio.TextManager.Interop Namespace