语言

IClrObjectFactory.CreateFromAssembly(String, String, String) 方法

定义

使用程序集的配置文件通过远程处理.NET激活远程程序集。

public:
 System::Object ^ CreateFromAssembly(System::String ^ assembly, System::String ^ type, System::String ^ mode);
public object CreateFromAssembly(string assembly, string type, string mode);
abstract member CreateFromAssembly : string * string * string -> obj
Public Function CreateFromAssembly (assembly As String, type As String, mode As String) As Object

参数

assembly
String

要激活的程序集的名称。

type
String

要激活的类型的名称。

mode
String

未使用。

返回

表示类型的实例 Object ,其区域性、参数和绑定和激活属性设置为 null,或者 null 找不到参数 type 。

例外

调用链中的调用方无权访问非托管代码。

该类未注册。

适用于