AssemblyLoadContext.GetAssemblyName(String) Method

Definition

Gets an AssemblyName for an assembly path.

C#
public static System.Reflection.AssemblyName GetAssemblyName(string assemblyPath);

Parameters

assemblyPath
String

The path to the assembly.

Returns

An object that contains the fully parsed assembly name for the assembly at assemblyPath.

Exceptions

assemblyPath is null.

The assembly cannot be found.

The assembly is not a valid assembly.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10