Export (0) Print
Expand All

_AppDomain.Load Method (AssemblyName, Evidence)

.NET Framework 1.1

Loads an Assembly given its AssemblyName.

[Visual Basic]
Function Load( _
   ByVal assemblyRef As AssemblyName, _
   ByVal assemblySecurity As Evidence _
) As Assembly
[C#]
Assembly Load(
   AssemblyName assemblyRef,
 Evidence assemblySecurity
);
[C++]
Assembly* Load(
   AssemblyName* assemblyRef,
 Evidence* assemblySecurity
);
[JScript]
function Load(
   assemblyRef : AssemblyName,
 assemblySecurity : Evidence
) : Assembly;

Parameters

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

Return Value

The loaded assembly.

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.

Requirements

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

See Also

_AppDomain Interface | _AppDomain Members | System Namespace | _AppDomain.Load Overload List

Show:
© 2014 Microsoft