ITypeLib 介面

定義

提供 ITypeLib 介面的 Managed 定義。

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

備註

如需詳細資訊,請參閱 ITypeLib 介面

Common Language Runtime 會在機器碼中的 COM 方法傳回 HRESULT 時擲回例外狀況。 如需詳細資訊,請參閱 How to: Map HRESULTs and Exceptions

方法

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

尋找型別描述在型別程式庫中的符合項目。

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

擷取程式庫的文件字串、完整的說明檔名稱和路徑,以及說明檔中程式庫說明主題的主題代碼。

GetLibAttr(IntPtr)

擷取包含程式庫之屬性 (Attribute) 的結構。

GetTypeComp(ITypeComp)

讓用戶端編譯器 (Compiler) 繫結至程式庫的型別、變數、常數和全域函式。

GetTypeInfo(Int32, ITypeInfo)

擷取程式庫中指定的型別描述。

GetTypeInfoCount()

傳回型別程式庫中型別描述的數目。

GetTypeInfoOfGuid(Guid, ITypeInfo)

擷取對應到所指定 GUID 的型別描述。

GetTypeInfoType(Int32, TYPEKIND)

擷取型別描述的型別。

IsName(String, Int32)

指示傳入字串是否含有程式庫中所描述型別或成員的名稱。

ReleaseTLibAttr(IntPtr)

釋放原來從 TYPELIBATTR 方法取得的 GetLibAttr(IntPtr) 結構。

適用於