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)

Loads an assembly given its AssemblyName.

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

Parameters

assemblyRef
The AssemblyName object that describes the assembly to be loaded.

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