FormatterServices.GetTypeFromAssembly(Assembly, String) 方法

定义

在提供的 Assembly 中查找指定对象的 Type

public:
 static Type ^ GetTypeFromAssembly(System::Reflection::Assembly ^ assem, System::String ^ name);
public static Type? GetTypeFromAssembly (System.Reflection.Assembly assem, string name);
public static Type GetTypeFromAssembly (System.Reflection.Assembly assem, string name);
[System.Security.SecurityCritical]
public static Type GetTypeFromAssembly (System.Reflection.Assembly assem, string name);
static member GetTypeFromAssembly : System.Reflection.Assembly * string -> Type
[<System.Security.SecurityCritical>]
static member GetTypeFromAssembly : System.Reflection.Assembly * string -> Type
Public Shared Function GetTypeFromAssembly (assem As Assembly, name As String) As Type

参数

assem
Assembly

要在其中查找对象的程序集。

name
String

对象的名称。

返回

命名对象的 Type

属性

例外

assem 参数为 null

调用方没有所要求的权限。

适用于

另请参阅