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
'Declaração
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.
- grfOptions
Type: System.UInt32
[in] Specifies the search options. Values are taken from the __VSFINDOPTIONS enumeration.
- fResetStartPoint
Type: System.Int32
[in] Flag to reset the search start point.
- pHelper
Type: Microsoft.VisualStudio.TextManager.Interop.IVsFindHelper
[in] Pointer to a IVsFindHelper interface.
- pResult
Type: System.UInt32%
[out] Pointer to the search result. Values are taken from the __VSFINDRESULT enumeration.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.