ITypeComp.Bind(String, Int32, Int16, ITypeInfo, DESCKIND, BINDPTR) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Mappe un nom à un membre d’un type ou lie des variables globales et des fonctions 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 d’indicateur contenant un ou plusieurs indicateurs d’appel définis dans l’énumération INVOKEKIND .
- ppTInfo
- ITypeInfo
Lorsque cette méthode est retournée, contient une référence à la description de type qui contient l’élément auquel elle est liée, si une FUNCDESC ou VARDESC a été retournée. Ce paramètre est passé non initialisé.
- pDescKind
- DESCKIND
Lorsque cette méthode est retournée, contient une référence à un DESCKIND énumérateur qui indique si le nom lié est un VARDESC, FUNCDESCou TYPECOMP. Ce paramètre est passé non initialisé.
- pBindPtr
- BINDPTR
Lorsque cette méthode est retournée, contient une référence à la liaison VARDESC, FUNCDESCou ITypeComp à l’interface. Ce paramètre est passé non initialisé.
Remarques
Pour plus d’informations, consultez la méthode ITypeComp ::Bind.