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 之前标识 DLL 中组件的类标识符(CLSIDs)和 ProgID。