ITypeComp.BindType(String, Int32, ITypeInfo, ITypeComp) 方法
定义
绑定到包含在类型库中的类型说明。Binds to the type descriptions contained within a type library.
public:
void BindType(System::String ^ szName, int lHashVal, [Runtime::InteropServices::Out] System::Runtime::InteropServices::ComTypes::ITypeInfo ^ % ppTInfo, [Runtime::InteropServices::Out] System::Runtime::InteropServices::ComTypes::ITypeComp ^ % ppTComp);
public void BindType (string szName, int lHashVal, out System.Runtime.InteropServices.ComTypes.ITypeInfo ppTInfo, out System.Runtime.InteropServices.ComTypes.ITypeComp ppTComp);
abstract member BindType : string * int * ITypeInfo * ITypeComp -> unit
Public Sub BindType (szName As String, lHashVal As Integer, ByRef ppTInfo As ITypeInfo, ByRef ppTComp As ITypeComp)
参数
- szName
- String
要绑定的名称。The name to bind.
- lHashVal
- Int32
由 LHashValOfNameSys 确定的 szName 的哈希值。A hash value for szName determined by LHashValOfNameSys.
- ppTInfo
- ITypeInfo
此方法返回时,包含对将 szName 绑定到的类型的 ITypeInfo 的引用。When this method returns, contains a reference to an ITypeInfo of the type to which szName was bound. 此参数未经初始化即被传递。This parameter is passed uninitialized.
- ppTComp
- ITypeComp
此方法返回时,包含对 ITypeComp 变量的引用。When this method returns, contains a reference to an ITypeComp variable. 此参数未经初始化即被传递。This parameter is passed uninitialized.
注解
有关详细信息,请参阅 ITypeComp:: BindType 方法。For more information, see ITypeComp::BindType method.