System.Reflection.AssemblyName.GetAssemblyName Method

Gets the System.Reflection.AssemblyName for a given file.

Syntax

public static AssemblyName GetAssemblyName (string assemblyFile)

Parameters

assemblyFile
The path for the assembly whose System.Reflection.AssemblyName is to be returned.

Returns

An object that represents the given assembly file.

Remarks

This will only work if the file contains an assembly manifest. This method causes the file to be opened and closed, but the assembly is not added to this domain.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0