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, Boolean)

Loads an assembly given its display name. The assembly may optionally be shared.

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

Parameters

assemblyString
The display name of 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