Export (0) Print
Expand All

AppDomain.Load Method (String, Evidence)

.NET Framework 1.1

Loads an Assembly given its display name.

[Visual Basic]
Overloads Public Overridable Function Load( _
   ByVal assemblyString As String, _
   ByVal assemblySecurity As Evidence _
) As Assembly Implements _AppDomain.Load
[C#]
public virtual Assembly Load(
 string assemblyString,
 Evidence assemblySecurity
);
[C++]
public: virtual Assembly* Load(
 String* assemblyString,
 Evidence* assemblySecurity
);
[JScript]
public function Load(
   assemblyString : String,
 assemblySecurity : Evidence
) : Assembly;

Parameters

assemblyString
The display name of the assembly.
assemblySecurity
Evidence for loading the assembly.

Return Value

The loaded assembly.

Implements

_AppDomain.Load

Exceptions

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

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:
© 2014 Microsoft