ITypeLib ITypeLib ITypeLib ITypeLib Interface

定义

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

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

注解

有关其他信息ITypeLib接口,请参阅 MSDN 库。For additional information about the ITypeLib interface, 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.

方法

FindName(String, Int32, ITypeInfo[], Int32[], Int16) FindName(String, Int32, ITypeInfo[], Int32[], Int16) FindName(String, Int32, ITypeInfo[], Int32[], Int16) FindName(String, Int32, ITypeInfo[], Int32[], Int16)

在类型库中查找类型说明的匹配项。Finds occurrences of a type description in a type library.

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

检索库的文档字符串、完整的帮助文件名和路径以及帮助文件中的库帮助主题的上下文标识符。Retrieves the library's documentation string, the complete Help file name and path, and the context identifier for the library Help topic in the Help file.

GetLibAttr(IntPtr) GetLibAttr(IntPtr) GetLibAttr(IntPtr) GetLibAttr(IntPtr)

检索包含库的特性的结构。Retrieves the structure that contains the library's attributes.

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

使客户端编译器能够绑定到库的类型、变量、常数和全局函数。Enables a client compiler to bind to a library's types, variables, constants, and global functions.

GetTypeInfo(Int32, ITypeInfo) GetTypeInfo(Int32, ITypeInfo) GetTypeInfo(Int32, ITypeInfo) GetTypeInfo(Int32, ITypeInfo)

在库中检索指定的类型说明。Retrieves the specified type description in the library.

GetTypeInfoCount() GetTypeInfoCount() GetTypeInfoCount() GetTypeInfoCount()

返回类型库中的类型说明的数量。Returns the number of type descriptions in the type library.

GetTypeInfoOfGuid(Guid, ITypeInfo) GetTypeInfoOfGuid(Guid, ITypeInfo) GetTypeInfoOfGuid(Guid, ITypeInfo) GetTypeInfoOfGuid(Guid, ITypeInfo)

检索与指定的 GUID 相对应的类型说明。Retrieves the type description that corresponds to the specified GUID.

GetTypeInfoType(Int32, TYPEKIND) GetTypeInfoType(Int32, TYPEKIND) GetTypeInfoType(Int32, TYPEKIND) GetTypeInfoType(Int32, TYPEKIND)

检索类型说明的类型。Retrieves the type of a type description.

IsName(String, Int32) IsName(String, Int32) IsName(String, Int32) IsName(String, Int32)

指示传入的字符串是否包含库中描述的类型或成员的名称。Indicates whether a passed-in string contains the name of a type or member described in the library.

ReleaseTLibAttr(IntPtr) ReleaseTLibAttr(IntPtr) ReleaseTLibAttr(IntPtr) ReleaseTLibAttr(IntPtr)

释放最初通过 TYPELIBATTR 方法获取的 GetLibAttr(IntPtr) 结构。Releases the TYPELIBATTR structure originally obtained from the GetLibAttr(IntPtr) method.

适用于