Bagikan melalui


FormatterServices.GetTypeFromAssembly(Assembly, String) Metode

Definisi

Mencari Type objek yang ditentukan dalam yang disediakan 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

Parameter

assem
Assembly

Perakitan tempat Anda ingin mencari objek .

name
String

Nama objek.

Mengembalikan

Type dari objek bernama.

Atribut

Pengecualian

Parameternya assem adalah null.

Pemanggil tidak memiliki izin yang diperlukan.

Berlaku untuk

Lihat juga