System.Runtime.Loader
3 wrapped types. Load them with using { "System.Runtime.Loader" }. Click a class to open it.
AssemblyDependencyResolver class sealed
System.Runtime.Loader.AssemblyDependencyResolver · assembly System.Private.CoreLib
Constructors
new AssemblyDependencyResolver(string componentAssemblyPath) |
Ring: new AssemblyDependencyResolver(args) uses one constructor; the others are chosen by the parameter names: new AssemblyDependencyResolver().@New([ :param = value ]) or dnNew("AssemblyDependencyResolver",[ :param = value ]).
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ResolveAssemblyToPath | ResolveAssemblyToPath(p1) | string ResolveAssemblyToPath(AssemblyName assemblyName) |
ResolveUnmanagedDllToPath | callMethod("ResolveUnmanagedDllToPath",[p1]) | string ResolveUnmanagedDllToPath(string unmanagedDllName) |
AssemblyLoadContext class
System.Runtime.Loader.AssemblyLoadContext · assembly System.Private.CoreLib
Constructors
new AssemblyLoadContext(string name, bool isCollectible = …) |
Ring: new AssemblyLoadContext(args) uses one constructor; the others are chosen by the parameter names: new AssemblyLoadContext().@New([ :param = value ]) or dnNew("AssemblyLoadContext",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Assemblies | IEnumerable<Assembly> | read | o.Assemblies |
IsCollectible | bool | read | o.IsCollectible |
Name | string | read | o.Name |
Default | AssemblyLoadContext | read · static | o.Default |
All | IEnumerable<AssemblyLoadContext> | read · static | o.All |
CurrentContextualReflectionContext | AssemblyLoadContext | read · static | o.CurrentContextualReflectionContext |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
EnterContextualReflection | EnterContextualReflection(NULL)EnterContextualReflection(value)EnterContextualReflection([ :activating = … ]) | AssemblyLoadContext.ContextualReflectionScope EnterContextualReflection()static AssemblyLoadContext.ContextualReflectionScope EnterContextualReflection(Assembly activating) |
GetAssemblyName | GetAssemblyName(p1) | static AssemblyName GetAssemblyName(string assemblyPath) |
GetLoadContext | GetLoadContext(p1) | static AssemblyLoadContext GetLoadContext(Assembly assembly) |
LoadFromAssemblyName | callMethod("LoadFromAssemblyName",[p1]) | Assembly LoadFromAssemblyName(AssemblyName assemblyName) |
LoadFromAssemblyPath | callMethod("LoadFromAssemblyPath",[p1]) | Assembly LoadFromAssemblyPath(string assemblyPath) |
LoadFromNativeImagePath | callMethod("LoadFromNativeImagePath",[p1,p2]) | Assembly LoadFromNativeImagePath(string nativeImagePath, string assemblyPath) |
LoadFromStream | LoadFromStream(value)LoadFromStream([ :assembly = … ])LoadFromStream([ :assembly = …, :assemblySymbols = … ]) | Assembly LoadFromStream(Stream assembly)Assembly LoadFromStream(Stream assembly, Stream assemblySymbols) |
SetProfileOptimizationRoot | callMethod("SetProfileOptimizationRoot",[p1]) | void SetProfileOptimizationRoot(string directoryPath) |
StartProfileOptimization | callMethod("StartProfileOptimization",[p1]) | void StartProfileOptimization(string profile) |
ToString | callMethod("ToString",[]) | string ToString() |
Unload | callMethod("Unload",[]) | void Unload() |
Events
| Event | Handler type | In Ring |
|---|---|---|
ResolvingUnmanagedDll | Func<Assembly, string, IntPtr> | o.setResolvingUnmanagedDllEvent(code) · o.clearResolvingUnmanagedDllEvent() |
Resolving | Func<AssemblyLoadContext, AssemblyName, Assembly> | o.setResolvingEvent(code) · o.clearResolvingEvent() |
Unloading | Action<AssemblyLoadContext> | o.setUnloadingEvent(code) · o.clearUnloadingEvent() |
AssemblyLoadContextContextualReflectionScope struct
System.Runtime.Loader.AssemblyLoadContext+ContextualReflectionScope · assembly System.Private.CoreLib
Implements: IDisposable
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Dispose | callMethod("Dispose",[]) | void Dispose() |