Share via


UCOMITypeComp.Bind Méthode

Définition

Mappe un nom à un membre d'un type, ou lie des variables et des fonctions globales contenues dans une bibliothèque de types.

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)

Paramètres

szName
String

Nom à lier.

lHashVal
Int32

Valeur de hachage pour szName calculée par LHashValOfNameSys.

wFlags
Int16

Mot indicateur contenant un ou plusieurs indicateurs d'appel définis dans l'énumération INVOKEKIND.

ppTInfo
UCOMITypeInfo

Lors d'un retour, référence à la description de type qui contient l'élément auquel elle est liée, si FUNCDESC ou VARDESC a été retourné.

pDescKind
DESCKIND

Référence à un énumérateur DESCKIND qui indique si le nom lié est VARDESC, FUNCDESC ou TYPECOMP.

pBindPtr
BINDPTR

Référence à l'interface liée VARDESC, FUNCDESC ou ITypeComp.

Remarques

Pour plus d’informations, consultez la documentation existante pour ITypeComp::Bind dans la bibliothèque MSDN.

S’applique à