共用方式為


FormatterServices.GetTypeFromAssembly(Assembly, String) 方法

定義

在所提供的 Type 中查詢指定物件的 Assembly

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

呼叫端沒有必要的權限。

適用於

另請參閱