IVsFinder.Init (Método)
Establece la cadena de búsqueda.
Espacio de nombres: Microsoft.VisualStudio.TextManager.Interop
Ensamblado: Microsoft.VisualStudio.TextManager.Interop (en Microsoft.VisualStudio.TextManager.Interop.dll)
Sintaxis
'Declaración
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] Marcador que contiene opciones de búsqueda. Los valores se interpretan de enumeración de __VSFINDOPTIONS .
pszFindPattern
Tipo: String[in] Modelo a buscar.
fReinit
Tipo: Int32[in] true para un nuevo modelo.
pResult
Tipo: UInt32%[out]
Valor devuelto
Tipo: Int32
si el método tiene éxito, devuelve S_OK.Si se produce un error, devuelve un código de error.
Comentarios
Prototipo COM
de textfind.idl:
HRESULT IVsFinder::Init(
[in] DWORD grfOptions,
[in] LPCOLESTR pszFindPattern,
[in] BOOL fReinit
);
IVsFinder.Init establece la cadena de búsqueda, compilándola para coincidir adecuado con tipo. Establezca fReinit a true cuando sepa tiene otro modelo y desea omitir la memoria caché del modelo.
Seguridad de .NET Framework
- Plena confianza para el llamador inmediato. Un código de confianza parcial no puede utilizar este miembro. Para obtener más información, vea Utilizar bibliotecas de código que no es de plena confianza.
Vea también
Referencia
Microsoft.VisualStudio.TextManager.Interop (Espacio de nombres)