ITypeLib2 介面

定義

提供 ITypeLib2 介面的 Managed 定義。

public interface class ITypeLib2 : System::Runtime::InteropServices::ComTypes::ITypeLib
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface ITypeLib2 : System.Runtime.InteropServices.ComTypes.ITypeLib
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
[System.Runtime.InteropServices.Guid("00020411-0000-0000-C000-000000000046")]
public interface ITypeLib2 : System.Runtime.InteropServices.ComTypes.ITypeLib
public interface ITypeLib2 : System.Runtime.InteropServices.ComTypes.ITypeLib
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type ITypeLib2 = interface
    interface ITypeLib
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
[<System.Runtime.InteropServices.Guid("00020411-0000-0000-C000-000000000046")>]
type ITypeLib2 = interface
    interface ITypeLib
type ITypeLib2 = interface
    interface ITypeLib
Public Interface ITypeLib2
Implements ITypeLib
屬性
實作

備註

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

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

方法

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

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

GetAllCustData(IntPtr)

取得程式庫的所有自訂資料項目。

GetCustData(Guid, Object)

取得自訂資料。

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

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

GetDocumentation2(Int32, String, Int32, String)

抓取主題庫文件字串、完整「說明」檔案名稱與路徑、要使用的當地語系化內容,以及「說明」檔案中「說明」主題庫的內容識別碼。

GetLibAttr(IntPtr)

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

GetLibStatistics(IntPtr, Int32)

傳回有效調整雜湊資料表大小所需的型別程式庫相關統計資料。

GetTypeComp(ITypeComp)

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

GetTypeInfo(Int32, ITypeInfo)

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

GetTypeInfoCount()

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

GetTypeInfoOfGuid(Guid, ITypeInfo)

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

GetTypeInfoType(Int32, TYPEKIND)

擷取型別描述的型別。

IsName(String, Int32)

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

ReleaseTLibAttr(IntPtr)

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

適用於