AssemblyLoadContext.LoadFromAssemblyPath(String) Méthode
Définition
Charge le contenu d’un fichier d’assembly sur le chemin d’accès spécifié.Loads the contents of an assembly file on the specified path.
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.The fully qualified path of the file to load.
Retours
Assembly chargé.The loaded assembly.
Exceptions
L’argument assemblyPath
n’est pas un chemin absolu.The assemblyPath
argument is not an absolute path.
Le paramètre assemblyPath
a la valeur null
.The assemblyPath
parameter is null
.
Impossible de charger l’un des fichiers trouvés.A file that was found could not be loaded.
Le paramètre assemblyPath
est une chaîne vide ("") ou n’existe pas.The assemblyPath
parameter is an empty string ("") or does not exist.
assemblyPath
n’est pas un assembly valide.assemblyPath
is not a valid assembly.