Sdílet prostřednictvím


ComManagedImportUtil.GetComponentInfo(String, String, String) Metoda

Definice

Získá informace o komponentě ze sestavení.

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)

Parametry

assemblyPath
String

Cesta ke sestavení.

numComponents
String

Když tato metoda vrátí, tento parametr obsahuje počet součástí v sestavení.

componentInfo
String

Když tato metoda vrátí, tento parametr obsahuje informace o komponentách.

Implementuje

Výjimky

assemblyPath je prázdný řetězec, obsahuje pouze prázdné znaky nebo obsahuje jeden nebo více neplatných znaků definovaných nástrojem InvalidPathChars.

-nebo-

Systém nemohl načíst absolutní cestu.

Volající nemá požadovaná oprávnění.

assemblyPath je null.

assemblyPath obsahuje dvojtečku (":").

Zadaná cesta, název souboru nebo obojí překračují maximální délku definovanou systémem.

Poznámky

Tato metoda je volána katalogem MODELU COM + k identifikaci identifikátorů tříd (CLSID) a ProgID komponent v knihovně DLL před tím, než je zaregistrována.

Platí pro