NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

AppDomain.Load (AssemblyName, Evidence, Boolean)

Loads an Assembly given its AssemblyName and supplied evidence. The Assembly may be shared.

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

Parameters

assemblyRef
The AssemblyName that describes the Assembly to be loaded.
assemblySecurity
Evidence for loading the Assembly.
shared
If true, the Assembly is loaded in a form where its JIT-compiled code can be reused by multiple application domains (at a slight cost in code quality).

Return Value

The loaded Assembly.

Exceptions

Exception Type Condition
ArgumentNullException if assemblyRef is a null reference (in Visual Basic Nothing)

See Also

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