ITypeLib2.FindName(String, Int32, ITypeInfo[], Int32[], Int16) Método
Definição
Localiza as ocorrências de uma descrição de tipo em uma biblioteca de tipos.Finds occurrences of a type description in a type library.
public:
void FindName(System::String ^ szNameBuf, int lHashVal, cli::array <System::Runtime::InteropServices::ComTypes::ITypeInfo ^> ^ ppTInfo, cli::array <int> ^ rgMemId, short % pcFound);
public void FindName (string szNameBuf, int lHashVal, System.Runtime.InteropServices.ComTypes.ITypeInfo[] ppTInfo, int[] rgMemId, ref short pcFound);
abstract member FindName : string * int * System.Runtime.InteropServices.ComTypes.ITypeInfo[] * int[] * int16 -> unit
Public Sub FindName (szNameBuf As String, lHashVal As Integer, ppTInfo As ITypeInfo(), rgMemId As Integer(), ByRef pcFound As Short)
Parâmetros
- szNameBuf
- String
O nome a ser procurado.The name to search for.
- lHashVal
- Int32
Um valor de hash para acelerar a pesquisa, calculado pela função LHashValOfNameSys.A hash value to speed up the search, computed by the LHashValOfNameSys function. Se lHashVal for 0, um valor será computado.If lHashVal is 0, a value is computed.
- ppTInfo
- ITypeInfo[]
Quando retorna, este método contém uma matriz de ponteiros para as descrições de tipo que contêm o nome especificado em szNameBuf.When this method returns, contains an array of pointers to the type descriptions that contain the name specified in szNameBuf. Este parâmetro é passado não inicializado.This parameter is passed uninitialized.
- rgMemId
- Int32[]
Quando esse método é retornado, ele contém uma matriz dos MEMBERIDs dos itens encontrados; rgMemId [i] é o MEMBERID que indexa na descrição de tipo especificada pelo ppTInfo [i].When this method returns, contains an array of the MEMBERIDs of the found items; rgMemId [i] is the MEMBERID that indexes into the type description specified by ppTInfo [i]. O parâmetro não pode ser null.This parameter cannot be null. Este parâmetro é passado não inicializado.This parameter is passed uninitialized.
- pcFound
- Int16
Na entrada, um valor, passado por referência, que indica quantas instâncias procurar.On entry, a value, passed by reference, that indicates how many instances to look for. Por exemplo, pcFound = 1 pode ser chamado para localizar a primeira ocorrência.For example, pcFound = 1 can be called to find the first occurrence. A pesquisa é interrompida quando uma instância é encontrada.The search stops when one instance is found.
Na saída, indica o número de instâncias que foram encontradas.On exit, indicates the number of instances that were found. Se os valores in e out de pcFound forem idênticos, poderá haver mais descrições de tipo que contêm o nome.If the in and out values of pcFound are identical, there might be more type descriptions that contain the name.
Implementações
Comentários
Deve haver espaço suficiente no rgMemId parâmetro para manter as pcFound entradas.There must be enough room in the rgMemId parameter to hold the pcFound entries.
Para obter mais informações, consulte método ITypeLib:: FindName.For more information, see ITypeLib::FindName method.