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
[C#]
public virtual Assembly Load(
 AssemblyName assemblyRef,
 Evidence assemblySecurity
);
[C++]
public: virtual Assembly* Load(
 AssemblyName* assemblyRef,
 Evidence* assemblySecurity
);
[JScript]
public function Load(
   assemblyRef : AssemblyName,
 assemblySecurity : Evidence
) : Assembly;

Parameters

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

Return Value

The loaded assembly.

Implements

_AppDomain.Load

Exceptions

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.

Remarks

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

Requirements

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

Show: