UCOMITypeComp.Bind Method (String, Int32, Int16, UCOMITypeInfo, DESCKIND, BINDPTR)


Maps a name to a member of a type, or binds global variables and functions contained in a type library.

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

void Bind(
	string szName,
	int lHashVal,
	short wFlags,
	out UCOMITypeInfo ppTInfo,
	out DESCKIND pDescKind,
	out BINDPTR pBindPtr


Type: System.String

The name to bind.

Type: System.Int32

A hash value for szName computed by LHashValOfNameSys.

Type: System.Int16

A flags word containing one or more of the invoke flags defined in the INVOKEKIND enumeration.

Type: System.Runtime.InteropServices.UCOMITypeInfo

On successful return, a reference to the type description that contains the item to which it is bound, if a FUNCDESC or VARDESC was returned.

Type: System.Runtime.InteropServices.DESCKIND

A reference to a DESCKIND enumerator that indicates whether the name bound to is a VARDESC, FUNCDESC, or TYPECOMP.

Type: System.Runtime.InteropServices.BINDPTR

A reference to the bound-to VARDESC, FUNCDESC, or ITypeComp interface.

For more information, please see the existing documentation for ITypeComp::Bind in the MSDN library.

.NET Framework
Available since 1.1
Return to top