AssemblyLoadContext.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 le contenu d’un fichier d’assembly sur le chemin d’accès spécifié.
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
- assemblyPath
- String
Chemin d'accès complet du fichier à charger.
Retours
Assembly chargé.
Exceptions
L’argument assemblyPath
n’est pas un chemin absolu.
L'argument assemblyPath
a la valeur null
.
Impossible de charger l’un des fichiers trouvés.
L’argument assemblyPath
est une chaîne vide (« ») ou n’existe pas.
L’argument assemblyPath
n’est pas un assembly valide.
S’applique à
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Prochainement : Tout au long de l'année 2024, nous supprimerons progressivement les GitHub Issues en tant que mécanisme de retour d'information pour le contenu et nous les remplacerons par un nouveau système de retour d'information. Pour plus d’informations, voir:Soumettre et afficher des commentaires pour