ComManagedImportUtil.GetComponentInfo(String, String, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從組件中取得元件資訊。
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 是 null。
assemblyPath 包含冒號(“:”)。
指定的路徑、檔名或兩者都超過系統定義的最大長度。
備註
COM+ 目錄呼叫此方法,以在 DLL 註冊前識別元件的類別識別碼(CLSIDs)與 ProgID。