Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Loads an assembly given the long form of its name.
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Shared Function Load ( _
assemblyString As String _
) As Assembly
public static Assembly Load(
string assemblyString
)
public:
static Assembly^ Load(
String^ assemblyString
)
static member Load :
assemblyString:string -> Assembly
public static function Load(
assemblyString : String
) : Assembly
Parameters
- assemblyString
Type: System. . :: . .String
The long form of the assembly name.
Return Value
Type: System.Reflection. . :: . .Assembly
The loaded assembly.
Remarks
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.
Whether certain permissions are granted or not granted to an assembly is based on evidence. The rules for assembly and security evidence merging are as follows:
When you use a Load method with no Evidence parameter, the assembly is loaded with the evidence that the loader supplies.
When you use a Load method with an Evidence parameter, pieces of evidence are merged. Pieces of evidence supplied as an argument to the Load method supersede pieces of evidence supplied by the loader.
When you use a Load method with a Byte[] parameter and Evidence to load a COFF image, only the supplied evidence is used. Evidence of the calling assembly and evidence of the COFF image is ignored.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.