Load |
public class LoadContextIntoDefault : AssemblyLoadContext
The LoadContextIntoDefault type exposes the following members.
| Name | Description | |
|---|---|---|
| LoadContextIntoDefault | Initializes a new instance of the LoadContextIntoDefault class. |
| Name | Description | |
|---|---|---|
| Assemblies | Returns a collection of the Assembly instances loaded in the AssemblyLoadContext. (Inherited from AssemblyLoadContext) | |
| IsCollectible | Gets a value that indicates whether this AssemblyLoadContext is collectible. (Inherited from AssemblyLoadContext) | |
| Name | Get the name of the AssemblyLoadContext. (Inherited from AssemblyLoadContext) |
| Name | Description | |
|---|---|---|
| EnterContextualReflection | Sets CurrentContextualReflectionContext to thisAssemblyLoadContext. (Inherited from AssemblyLoadContext) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows the object to try to free resources and perform other cleanup operations before it's reclaimed by garbage collection. (Inherited from AssemblyLoadContext) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| Load |
Allows an assembly to be resolved and loaded based on its AssemblyName.
Here, we first look into the current application domain, and if an assembly with the same name is already loaded,
we return this assembly. Otherwise, we try to resolve the assembly name, and then load the assembly into
the Default (!) context (and not in the context represented by this instance).
(Overrides AssemblyLoadContextLoad(AssemblyName)) | |
| LoadFromAssemblyName | Resolves and loads an assembly given its AssemblyName. (Inherited from AssemblyLoadContext) | |
| LoadFromAssemblyPath | Loads the contents of an assembly file on the specified path. (Inherited from AssemblyLoadContext) | |
| LoadFromNativeImagePath | Loads the contents of the native image of a managed assembly file on the specified path. (Inherited from AssemblyLoadContext) | |
| LoadFromStream(Stream) | Loads the assembly with a common object file format (COFF)-based image containing a managed assembly. (Inherited from AssemblyLoadContext) | |
| LoadFromStream(Stream, Stream) | Loads the assembly with a common object file format (COFF)-based image containing a managed assembly, optionally including symbols for the assembly. (Inherited from AssemblyLoadContext) | |
| LoadUnmanagedDll |
Load an unmanaged library by name.
(Overrides AssemblyLoadContextLoadUnmanagedDll(String)) | |
| LoadUnmanagedDllFromPath | Loads an unmanaged library from the specified path. (Inherited from AssemblyLoadContext) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| SetProfileOptimizationRoot | Sets the root path where the optimization profiles for this load context are stored. (Inherited from AssemblyLoadContext) | |
| StartProfileOptimization | Starts the profile optimization for the specified profile. (Inherited from AssemblyLoadContext) | |
| ToString | Returns the string representation of this load context. (Inherited from AssemblyLoadContext) | |
| Unload | Initiates an unload of this AssemblyLoadContext. (Inherited from AssemblyLoadContext) |
| Name | Description | |
|---|---|---|
| Resolving | Occurs when the resolution of an assembly fails when attempting to load into this assembly load context. (Inherited from AssemblyLoadContext) | |
| ResolvingUnmanagedDll | Occurs when the resolution of a native library fails. (Inherited from AssemblyLoadContext) | |
| Unloading | Occurs when the AssemblyLoadContext is unloaded. (Inherited from AssemblyLoadContext) |