FormatterServices.GetTypeFromAssembly(Assembly, String) Méthode

Définition

Recherche l’objet Type spécifié dans le fichier fourni Assembly.

public:
 static Type ^ GetTypeFromAssembly(System::Reflection::Assembly ^ assem, System::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

Paramètres

assem
Assembly

Assembly dans lequel vous souhaitez rechercher l’objet.

name
String

Nom de l’objet.

Retours

De Type l’objet nommé.

Attributs

Exceptions

Le assem paramètre est null.

L’appelant n’a pas l’autorisation requise.

S’applique à

Voir aussi