This documentation is archived and is not being maintained.

AppDomain.Load Method (AssemblyName, Evidence)

.NET Framework 1.1

Loads an Assembly given its AssemblyName.

[Visual Basic]
Overloads Public Overridable Function Load( _
   ByVal assemblyRef As AssemblyName, _
   ByVal assemblySecurity As Evidence _
) As Assembly Implements _AppDomain.Load
public virtual Assembly Load(
 AssemblyName assemblyRef,
 Evidence assemblySecurity
public: virtual Assembly* Load(
 AssemblyName* assemblyRef,
 Evidence* assemblySecurity
public function Load(
   assemblyRef : AssemblyName,
 assemblySecurity : Evidence
) : Assembly;


An object that describes the assembly to load.
Evidence for loading the assembly.

Return Value

The loaded assembly.




Exception Type Condition
ArgumentNullException assemblyRef is a null reference (Nothing in Visual Basic)
FileNotFoundException assemblyRef is not found.
BadImageFormatException assemblyRef is not a valid assembly.
AppDomainUnloadedException Operations are attempted on an unloaded application domain.
SecurityException The caller does not have the correct permissions. See the requirements section.


For more information, see the Remarks section of the AppDomain.Load Method (AssemblyName) topic.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

AppDomain Class | AppDomain Members | System Namespace | AppDomain.Load Overload List