Partilhar via


Método IVsFinder.Init

Define a seqüência de localização.

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

Sintaxe

'Declaração
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

Parâmetros

  • grfOptions
    Tipo: UInt32

    [in] Sinalizador que contém opções de localização. Valores são obtidas a partir do __VSFINDOPTIONS enum.

  • pszFindPattern
    Tipo: String

    [in] Padrão para procurar.

  • fReinit
    Tipo: Int32

    [in] true para um novo padrão.

  • pResult
    Tipo: UInt32%

    [out]

Valor de retorno

Tipo: Int32
Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.

Comentários

COM assinatura

De textfind.idl:

HRESULT IVsFinder::Init(
   [in] DWORD grfOptions,
   [in] LPCOLESTR pszFindPattern,
   [in] BOOL fReinit
);

IVsFinder.InitDefine a seqüência de localização, compilando-o para o tipo de correspondência apropriado. Definir fReinit para true quando você souber que você tem um padrão diferente e quiser ignorar o cache padrão.

Segurança do .NET Framework

Consulte também

Referência

IVsFinder Interface

Namespace Microsoft.VisualStudio.TextManager.Interop