UCOMITypeComp.Bind Method

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
)

Parameters

szName
Type: System.String

The name to bind.

lHashVal
Type: System.Int32

A hash value for szName computed by LHashValOfNameSys.

wFlags
Type: System.Int16

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

ppTInfo
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.

pDescKind
Type: System.Runtime.InteropServices.DESCKIND

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

pBindPtr
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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft