ערוך

שתף באמצעות


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

Parameters

szName
String

The name to bind.

lHashVal
Int32

A hash value for szName computed by LHashValOfNameSys.

wFlags
Int16

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

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

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

pBindPtr
BINDPTR

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

Remarks

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

Applies to