AssemblyNameGetAssemblyName Method |
Namespace: System.ReflectionAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static AssemblyName GetAssemblyName(
string assemblyFile
)
Parameters
- assemblyFile
- Type: SystemString
The path for the assembly whose AssemblyName is to be returned.
Return Value
Type:
AssemblyNameAn object that represents the given assembly file.
Exceptions Exception | Condition |
---|
ArgumentNullException | assemblyFile is null. |
ArgumentException | assemblyFile is invalid, such as an assembly with an invalid culture. |
FileNotFoundException | assemblyFile is not found. |
SecurityException | The caller does not have path discovery permission. |
BadImageFormatException | assemblyFile is not a valid assembly. |
FileLoadException | An assembly or module was loaded twice with two different sets of evidence. |
See Also