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

Loads an assembly given its AssemblyName. The assembly may be shared.

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

Parameters

assemblyRef
The AssemblyName object that describes the assembly to be loaded.
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 assemblyRef 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 Also

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