Udostępnij przez


ComManagedImportUtil.GetComponentInfo(String, String, String) Metoda

Definicja

Pobiera informacje o składniku z zestawu.

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

Ścieżka do zestawu.

numComponents
String

Gdy ta metoda zwróci, ten parametr zawiera liczbę składników w zestawie.

componentInfo
String

Gdy ta metoda zwróci, ten parametr zawiera informacje o składnikach.

Implementuje

Wyjątki

assemblyPath jest pustym ciągiem, zawiera tylko białe znaki lub zawiera co najmniej jeden nieprawidłowy znak zdefiniowany przez InvalidPathCharselement .

-lub-

System nie może pobrać ścieżki bezwzględnej.

Obiekt wywołujący nie ma wymaganych uprawnień.

assemblyPath to null.

assemblyPath zawiera dwukropek (":").

Podana ścieżka, nazwa pliku lub obie przekraczają maksymalną długość zdefiniowaną przez system.

Uwagi

Ta metoda jest wywoływana przez wykaz COM+ w celu zidentyfikowania identyfikatorów klas (CLSID) i identyfikatorów ProgID składników w dll przed zarejestrowaniem.

Dotyczy