Export (0) Print
Expand All

UCOMITypeLib.FindName Method

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


Type: System.String

The name to search for.

Type: System.Int32

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

Type: System.Runtime.InteropServices.UCOMITypeInfo[]

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

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.

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

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft