ITypeComp 接口

定义

提供 ITypeComp 接口的托管定义。Provides the managed definition of the ITypeComp interface.

public interface class ITypeComp
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface ITypeComp
public interface ITypeComp
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
[System.Runtime.InteropServices.Guid("00020403-0000-0000-C000-000000000046")]
public interface ITypeComp
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type ITypeComp = interface
type ITypeComp = interface
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
[<System.Runtime.InteropServices.Guid("00020403-0000-0000-C000-000000000046")>]
type ITypeComp = interface
Public Interface ITypeComp
属性

注解

有关详细信息,请参阅 ITypeComp 接口For more information, see ITypeComp interface.

当本机代码中的 COM 方法返回 HRESULT 时,公共语言运行时将引发异常。The common language runtime throws an exception when a COM method in native code returns an HRESULT. 有关更多信息,请参见 How to: Map HRESULTs and ExceptionsFor more information, see How to: Map HRESULTs and Exceptions.

方法

Bind(String, Int32, Int16, ITypeInfo, DESCKIND, BINDPTR)

将名称映射到类型的成员,或者绑定类型库中包含的全局变量和函数。Maps a name to a member of a type, or binds global variables and functions contained in a type library.

BindType(String, Int32, ITypeInfo, ITypeComp)

绑定到包含在类型库中的类型说明。Binds to the type descriptions contained within a type library.

适用于