ITypeInfo ITypeInfo ITypeInfo ITypeInfo Interface

定义

提供组件自动化 ITypeInfo 接口的托管定义。Provides the managed definition of the Component Automation ITypeInfo interface.

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

注解

有关其他信息ITypeInfo,请参阅 MSDN 库。For additional information about ITypeInfo, see the MSDN Library.

在本机代码中的 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.

方法

AddressOfMember(Int32, INVOKEKIND, IntPtr) AddressOfMember(Int32, INVOKEKIND, IntPtr) AddressOfMember(Int32, INVOKEKIND, IntPtr) AddressOfMember(Int32, INVOKEKIND, IntPtr)

检索静态函数或变量(如那些在 DLL 中定义的静态函数或变量)的地址。Retrieves the addresses of static functions or variables, such as those defined in a DLL.

CreateInstance(Object, Guid, Object) CreateInstance(Object, Guid, Object) CreateInstance(Object, Guid, Object) CreateInstance(Object, Guid, Object)

创建描述组件类 (coclass) 的类型的新实例。Creates a new instance of a type that describes a component class (coclass).

GetContainingTypeLib(ITypeLib, Int32) GetContainingTypeLib(ITypeLib, Int32) GetContainingTypeLib(ITypeLib, Int32) GetContainingTypeLib(ITypeLib, Int32)

检索类型库,该类型库包含此类型说明和它在该类型库中的索引。Retrieves the type library that contains this type description and its index within that type library.

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

检索 DLL 中函数的入口点的说明或规范。Retrieves a description or specification of an entry point for a function in a DLL.

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

从文档字符串、完整的帮助文件名和路径以及帮助主题的上下文 ID 中检索指定的类型说明。Retrieves the documentation string, the complete Help file name and path, and the context ID for the Help topic for a specified type description.

GetFuncDesc(Int32, IntPtr) GetFuncDesc(Int32, IntPtr) GetFuncDesc(Int32, IntPtr) GetFuncDesc(Int32, IntPtr)

检索包含有关指定函数的信息的 FUNCDESC 结构。Retrieves the FUNCDESC structure that contains information about a specified function.

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

在成员名和成员 ID 之间以及参数名和参数 ID 之间映射。Maps between member names and member IDs, and parameter names and parameter IDs.

GetImplTypeFlags(Int32, IMPLTYPEFLAGS) GetImplTypeFlags(Int32, IMPLTYPEFLAGS) GetImplTypeFlags(Int32, IMPLTYPEFLAGS) GetImplTypeFlags(Int32, IMPLTYPEFLAGS)

在类型说明中检索某个已实现的接口或基接口的 IMPLTYPEFLAGS 值。Retrieves the IMPLTYPEFLAGS value for one implemented interface or base interface in a type description.

GetMops(Int32, String) GetMops(Int32, String) GetMops(Int32, String) GetMops(Int32, String)

检索封送处理信息。Retrieves marshaling information.

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

检索具有与指定函数 ID 相对应的指定成员 ID(或者属性或方法的名称及其参数)的变量。Retrieves the variable with the specified member ID (or the name of the property or method and its parameters) that corresponds to the specified function ID.

GetRefTypeInfo(Int32, ITypeInfo) GetRefTypeInfo(Int32, ITypeInfo) GetRefTypeInfo(Int32, ITypeInfo) GetRefTypeInfo(Int32, ITypeInfo)

检索被引用的类型说明(如果该类型说明引用其他类型说明)。Retrieves the referenced type descriptions if a type description references other type descriptions.

GetRefTypeOfImplType(Int32, Int32) GetRefTypeOfImplType(Int32, Int32) GetRefTypeOfImplType(Int32, Int32) GetRefTypeOfImplType(Int32, Int32)

检索实现的接口类型的类型说明(如果类型说明描述 COM 类)。Retrieves the type description of the implemented interface types if a type description describes a COM class.

GetTypeAttr(IntPtr) GetTypeAttr(IntPtr) GetTypeAttr(IntPtr) GetTypeAttr(IntPtr)

检索包含类型说明的特性的 TYPEATTR 结构。Retrieves a TYPEATTR structure that contains the attributes of the type description.

GetTypeComp(ITypeComp) GetTypeComp(ITypeComp) GetTypeComp(ITypeComp) GetTypeComp(ITypeComp)

检索类型说明的 ITypeComp 接口,此接口使客户端编译器可以绑定到类型说明的成员。Retrieves the ITypeComp interface for the type description, which enables a client compiler to bind to the type description's members.

GetVarDesc(Int32, IntPtr) GetVarDesc(Int32, IntPtr) GetVarDesc(Int32, IntPtr) GetVarDesc(Int32, IntPtr)

检索描述指定变量的 VARDESC 结构。Retrieves a VARDESC structure that describes the specified variable.

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

调用对象的方法或访问对象的属性,该方法或属性实现由类型说明描述的接口。Invokes a method, or accesses a property of an object, that implements the interface described by the type description.

ReleaseFuncDesc(IntPtr) ReleaseFuncDesc(IntPtr) ReleaseFuncDesc(IntPtr) ReleaseFuncDesc(IntPtr)

释放先前由 FUNCDESC 方法返回的一个 GetFuncDesc(Int32, IntPtr) 结构。Releases a FUNCDESC structure previously returned by the GetFuncDesc(Int32, IntPtr) method.

ReleaseTypeAttr(IntPtr) ReleaseTypeAttr(IntPtr) ReleaseTypeAttr(IntPtr) ReleaseTypeAttr(IntPtr)

释放先前由 TYPEATTR 方法返回的一个 GetTypeAttr(IntPtr) 结构。Releases a TYPEATTR structure previously returned by the GetTypeAttr(IntPtr) method.

ReleaseVarDesc(IntPtr) ReleaseVarDesc(IntPtr) ReleaseVarDesc(IntPtr) ReleaseVarDesc(IntPtr)

释放先前由 VARDESC 方法返回的一个 GetVarDesc(Int32, IntPtr) 结构。Releases a VARDESC structure previously returned by the GetVarDesc(Int32, IntPtr) method.

适用于