System.Reflection.Assembly.GetReferencedAssemblies Method

Gets the System.Reflection.AssemblyName objects for all the assemblies referenced by this assembly.

Syntax

public virtual AssemblyName[] GetReferencedAssemblies ()

Returns

An array that contains the fully parsed display names of all the assemblies referenced by this assembly.

Remarks

Note:

Starting with the net_v40_long, the AssemblyName.HashAlgorithm property of an System.Reflection.AssemblyName object that is returned by this method is System.Configuration.Assemblies.AssemblyHashAlgorithm.None if there is no hash algorithm for the referenced assembly, or if the hash algorithm of the referenced assembly is not identified by the System.Configuration.Assemblies.AssemblyHashAlgorithm enumeration. In previous versions of the .NET Framework, the AssemblyName.HashAlgorithm property returned System.Configuration.Assemblies.AssemblyHashAlgorithm.SHA1 in this situation. 

Requirements

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