Langue

IComManagedImportUtil.GetComponentInfo(String, String, String) Méthode

Définition

Obtient les informations de composant de l’assembly.

public:
 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
Public Sub GetComponentInfo (assemblyPath As String, ByRef numComponents As String, ByRef componentInfo As String)

Paramètres

assemblyPath
String

Chemin d’accès à l’assembly.

numComponents
String

Lorsque cette méthode est retournée, ce paramètre contient le nombre de composants dans l’assembly.

componentInfo
String

Lorsque cette méthode est retournée, ce paramètre contient les informations sur les composants.

Exceptions

assemblyPath est une chaîne vide ( » « ), contient uniquement un espace blanc, ou contient un ou plusieurs caractères non valides tels que définis par InvalidPathChars.

- ou -

Le système n’a pas pu récupérer le chemin absolu.

L’appelant n’a pas les autorisations requises.

assemblyPath a la valeur null.

assemblyPath contient un signe deux-points (« : »).

Le chemin d’accès spécifié, le nom de fichier ou les deux dépassent la longueur maximale définie par le système.

Remarques

Cette méthode est appelée par le catalogue COM+ pour identifier les identificateurs de classe (CLSID) et les ProgID des composants d’une DLL avant son inscription.

S’applique à