FormatterServices.GetTypeFromAssembly(Assembly, String) Méthode

Définition

Recherche le Type de l'objet spécifié dans le Assembly fourni.

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

Paramètres

assem
Assembly

Assembly dans lequel vous souhaitez rechercher l'objet.

name
String

Nom de l'objet.

Retours

Type

Type de l'objet nommé.

Attributs

Exceptions

Le paramètre assem a la valeur null.

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

S’applique à

Voir aussi