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!

Assembly.Load (String, Evidence, Boolean)

Loads an assembly given its display name. The assembly is loaded into the domain of the caller using the supplied evidence. The assembly may optionally be shared.

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

Parameters

assemblyString
The display name of the assembly.
assemblySecurity
Evidence for loading the assembly.
shared
true to load the assembly in a form where the 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 assemblyString is a null reference (in Visual Basic Nothing)
FileNotFoundException if assembly is not found

Remarks

The assembly is loaded into the domain of the caller.

See AssemblyName for a description of the format of the display name.

See Also

Assembly Class | Assembly Members | System.Reflection Namespace | Assembly.Load Overload List