Editare

Partajați prin


ITypeLib2.FindName(String, Int32, ITypeInfo[], Int32[], Int16) Method

Definition

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)

Parameters

szNameBuf
String

The name to search for.

lHashVal
Int32

A hash value to speed up the search, computed by the LHashValOfNameSys function. If lHashVal is 0, a value is computed.

ppTInfo
ITypeInfo[]

When this method returns, contains an array of pointers to the type descriptions that contain the name specified in szNameBuf. This parameter is passed uninitialized.

rgMemId
Int32[]

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]. This parameter cannot be null. This parameter is passed uninitialized.

pcFound
Int16

On entry, a value, passed by reference, that indicates how many instances to look for. For example, pcFound = 1 can be called to find the first occurrence. The search stops when one instance is found.

On exit, indicates the number of instances that were found. If the in and out values of pcFound are identical, there might be more type descriptions that contain the name.

Implements

Remarks

There must be enough room in the rgMemId parameter to hold the pcFound entries.

For more information, see ITypeLib::FindName method.

Applies to