語言

ComManagedImportUtil.GetComponentInfo(String, String, String) 方法

定義

從組件中取得元件資訊。

public:
 virtual void GetComponentInfo(System::String ^ assemblyPath, [Runtime::InteropServices::Out] System::String ^ % numComponents, [Runtime::InteropServices::Out] System::String ^ % componentInfo);
public void GetComponentInfo(string assemblyPath, out string numComponents, out string componentInfo);
abstract member GetComponentInfo : string * string * string -> unit
override this.GetComponentInfo : string * string * string -> unit
Public Sub GetComponentInfo (assemblyPath As String, ByRef numComponents As String, ByRef componentInfo As String)

參數

assemblyPath
String

通往集會的路徑。

numComponents
String

當此方法回傳時,該參數包含組件中的元件數量。

componentInfo
String

當此方法返回時,該參數包含元件的資訊。

實作

例外狀況

assemblyPath 是空字串、僅包含空白,或包含一個或多個無效字元,定義如下 InvalidPathChars。

-或-

系統無法取得絕對路徑。

來電者沒有所需的權限。

assemblyPath 是 null。

assemblyPath 包含冒號(“:”)。

指定的路徑、檔名或兩者都超過系統定義的最大長度。

備註

COM+ 目錄呼叫此方法,以在 DLL 註冊前識別元件的類別識別碼(CLSIDs)與 ProgID。

適用於