语言

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

定义

从程序集获取组件信息。

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)

参数

assemblyPath
String

程序集的路径。

numComponents
String

此方法返回时,此参数包含程序集中的组件数。

componentInfo
String

此方法返回时,此参数包含有关组件的信息。

例外

assemblyPath 是一个空字符串(“”),仅包含空格,或包含一个或多个无效字符,由 InvalidPathChars该字符串定义。

-或-

系统无法检索绝对路径。

调用方没有所需的权限。

assemblyPath 是 null。

assemblyPath 包含冒号 (“:):

指定的路径、文件名或两者都超过了系统定义的最大长度。

注解

COM+ 目录调用此方法,以在注册 DLL 之前标识 DLL 中组件的类标识符(CLSIDs)和 ProgID。

适用于