UCOMITypeLib.FindName Method (String, Int32, UCOMITypeInfo[], Int32[], Int16)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Finds occurrences of a type description in a type library.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

void FindName(
	string szNameBuf,
	int lHashVal,
	UCOMITypeInfo[] ppTInfo,
	int[] rgMemId,
	ref short pcFound
)

Parameters

szNameBuf
Type: System.String

The name to search for.

lHashVal
Type: System.Int32

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

ppTInfo
Type: System.Runtime.InteropServices.UCOMITypeInfo[]

On successful return, an array of pointers to the type descriptions that contain the name specified in szNameBuf.

rgMemId
Type: System.Int32[]

An array of the MEMBERID 's of the found items; rgMemId [i] is the MEMBERID that indexes into the type description specified by ppTInfo [i]. Cannot be null.

pcFound
Type: System.Int16

On entry, 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.

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

For additional information about ITypeLib::FindName, see the MSDN Library.

.NET Framework
Available since 1.1
Return to top
Show: