ITypeInfo 接口

定义

提供组件自动化 ITypeInfo 接口的托管定义。

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

注解

有关详细信息,请参阅 ITypeInfo 接口

当本机代码中的 COM 方法返回 HRESULT 时,公共语言运行时将引发异常。 有关更多信息,请参见 How to: Map HRESULTs and Exceptions

方法

AddressOfMember(Int32, INVOKEKIND, IntPtr)

检索静态函数或变量(如那些在 DLL 中定义的静态函数或变量)的地址。

CreateInstance(Object, Guid, Object)

创建描述组件类 (coclass) 的类型的新实例。

GetContainingTypeLib(ITypeLib, Int32)

检索类型库,该类型库包含此类型说明和它在该类型库中的索引。

GetDllEntry(Int32, INVOKEKIND, IntPtr, IntPtr, IntPtr)

检索 DLL 中函数的入口点的说明或规范。

GetDocumentation(Int32, String, String, Int32, String)

从文档字符串、完整的帮助文件名和路径以及帮助主题的上下文 ID 中检索指定的类型说明。

GetFuncDesc(Int32, IntPtr)

检索包含有关指定函数的信息的 FUNCDESC 结构。

GetIDsOfNames(String[], Int32, Int32[])

在成员名和成员 ID 之间以及参数名和参数 ID 之间映射。

GetImplTypeFlags(Int32, IMPLTYPEFLAGS)

在类型说明中检索某个已实现的接口或基接口的 IMPLTYPEFLAGS 值。

GetMops(Int32, String)

检索封送处理信息。

GetNames(Int32, String[], Int32, Int32)

检索具有与指定函数 ID 相对应的指定成员 ID(或者属性或方法的名称及其参数)的变量。

GetRefTypeInfo(Int32, ITypeInfo)

检索被引用的类型说明(如果该类型说明引用其他类型说明)。

GetRefTypeOfImplType(Int32, Int32)

检索实现的接口类型的类型说明(如果类型说明描述 COM 类)。

GetTypeAttr(IntPtr)

检索包含类型说明的特性的 TYPEATTR 结构。

GetTypeComp(ITypeComp)

检索类型说明的 ITypeComp 接口,此接口使客户端编译器可以绑定到类型说明的成员。

GetVarDesc(Int32, IntPtr)

检索描述指定变量的 VARDESC 结构。

Invoke(Object, Int32, Int16, DISPPARAMS, IntPtr, IntPtr, Int32)

调用对象的方法或访问对象的属性,该方法或属性实现由类型说明描述的接口。

ReleaseFuncDesc(IntPtr)

释放先前由 FUNCDESC 方法返回的一个 GetFuncDesc(Int32, IntPtr) 结构。

ReleaseTypeAttr(IntPtr)

释放先前由 TYPEATTR 方法返回的一个 GetTypeAttr(IntPtr) 结构。

ReleaseVarDesc(IntPtr)

释放先前由 VARDESC 方法返回的一个 GetVarDesc(Int32, IntPtr) 结构。

适用于