Share via


ITypeComp.Bind(String, Int32, Int16, ITypeInfo, DESCKIND, BINDPTR) 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::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 * ITypeInfo * DESCKIND * BINDPTR -> 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)

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
ITypeInfo

Lorsque cette méthode retourne une valeur, contient une référence à la description de type comprenant l'élément auquel elle est liée, si FUNCDESC ou VARDESC a été retourné. Ce paramètre est passé sans être initialisé.

pDescKind
DESCKIND

Lorsque cette méthode retourne une valeur, contient une référence à un énumérateur DESCKIND qui indique si le nom lié est VARDESC, FUNCDESC ou TYPECOMP. Ce paramètre est passé sans être initialisé.

pBindPtr
BINDPTR

Lorsque cette méthode retourne une valeur, contient une référence à l'interface VARDESC, FUNCDESC ou ITypeComp liée. Ce paramètre est passé sans être initialisé.

Remarques

Pour plus d’informations, consultez Méthode ITypeComp ::Bind.

S’applique à