MetadataLoadContext.LoadFromAssemblyPath(String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Charge un assembly à partir d’un chemin spécifique sur le disque et lie son nom d’assembly à celui-ci dans le MetadataLoadContext. Si un assembly précédent portant le même nom a déjà été chargé dans le MetadataLoadContext, cet assembly précédent est retourné.
public:
System::Reflection::Assembly ^ LoadFromAssemblyPath(System::String ^ assemblyPath);
public System.Reflection.Assembly LoadFromAssemblyPath (string assemblyPath);
member this.LoadFromAssemblyPath : string -> System.Reflection.Assembly
Public Function LoadFromAssemblyPath (assemblyPath As String) As Assembly
Paramètres
Retours
Instance de Assembly.
Exceptions
Les deux assemblys n’ont pas le même Mvid.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour