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.LoadFrom (String, Boolean)

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

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

Parameters

assemblyFile
The name of the file that contains the manifest 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 assemblyFile is a null reference (in Visual Basic Nothing)
FileNotFoundException if assemblyFile is not found

Remarks

The assembly is loaded into the domain of the caller.

See Also

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