ITypeComp.Bind(String, Int32, Int16, ITypeInfo, DESCKIND, BINDPTR) ITypeComp.Bind(String, Int32, Int16, ITypeInfo, DESCKIND, BINDPTR) ITypeComp.Bind(String, Int32, Int16, ITypeInfo, DESCKIND, BINDPTR) ITypeComp.Bind(String, Int32, Int16, ITypeInfo, DESCKIND, BINDPTR) Method

Definition

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

public:
 void Bind(System::String ^ szName, int lHashVal, short wFlags, [Runtime::InteropServices::Out] System::Runtime::InteropServices::ComTypes::ITypeInfo ^ % ppTInfo, [Runtime::InteropServices::Out] System::Runtime::InteropServices::ComTypes::DESCKIND % pDescKind, [Runtime::InteropServices::Out] System::Runtime::InteropServices::ComTypes::BINDPTR % pBindPtr);
public void Bind (string szName, int lHashVal, short wFlags, out System.Runtime.InteropServices.ComTypes.ITypeInfo ppTInfo, out System.Runtime.InteropServices.ComTypes.DESCKIND pDescKind, out System.Runtime.InteropServices.ComTypes.BINDPTR pBindPtr);
abstract member Bind : string * int * int16 *  *  *  -> unit
Public Sub Bind (szName As String, lHashVal As Integer, wFlags As Short, ByRef ppTInfo As ITypeInfo, ByRef pDescKind As DESCKIND, ByRef pBindPtr As BINDPTR)

Parameters

szName
String String String String

The name to bind.

lHashVal
Int32 Int32 Int32 Int32

A hash value for szName computed by LHashValOfNameSys.

wFlags
Int16 Int16 Int16 Int16

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

ppTInfo
ITypeInfo ITypeInfo ITypeInfo ITypeInfo

When this method returns, contains a reference to the type description that contains the item to which it is bound, if a FUNCDESC or VARDESC was returned. This parameter is passed uninitialized.

pDescKind
DESCKIND DESCKIND DESCKIND DESCKIND

When this method returns, contains a reference to a DESCKIND enumerator that indicates whether the name bound-to is a VARDESC, FUNCDESC, or TYPECOMP. This parameter is passed uninitialized.

pBindPtr
BINDPTR BINDPTR BINDPTR BINDPTR

When this method returns, contains a reference to the bound-to VARDESC, FUNCDESC, or ITypeComp interface. This parameter is passed uninitialized.

Remarks

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

Applies to