Assembly.Load Method (String)

Loads an assembly given the long form of its name.

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)


<SecuritySafeCriticalAttribute> _
Public Shared Function Load ( _
    assemblyString As String _
) As Assembly
public static Assembly Load(
    string assemblyString


  • assemblyString
    Type: System.String
    The long form of the assembly name.

Return Value

Type: System.Reflection.Assembly
The loaded assembly.


Exception Condition

assemblyString is nulla null reference (Nothing in Visual Basic).


assemblyString is a zero-length string.


assemblyString is not found.


A file that was found could not be loaded.


assemblyString is not a valid assembly.


assemblyString was compiled for a later version of the common language runtime than the currently executing version.


FileLoadException is thrown if assemblyString specifies the full assembly name, and the first assembly that matches the simple name has a different version, culture, or public key token. The loader does not continue probing for other assemblies that match the simple name.

Platform Notes

Silverlight for Windows Phone Silverlight for Windows Phone

  If you pass an invalid string to the Load method, it throws an IOException exception instead of an ArgumentException exception.

Version Information


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0


For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.