public class AssemblyLoadContext extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Runtime.Loader.AssemblyLoadContext
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.Runtime.Loader.AssemblyLoadContext
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
AssemblyLoadContext() |
AssemblyLoadContext(java.lang.Object instance)
Internal constructor.
|
AssemblyLoadContext(java.lang.String name,
boolean isCollectible)
Initializes a new instance by invoking the .NET constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static AssemblyLoadContext |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into AssemblyLoadContext, a cast assert is made to check if types are compatible. |
static IEnumerable_1 |
getAll()
Gets the value of the .NET property All.
|
IEnumerable_1 |
getAssemblies()
Gets the value of the .NET property Assemblies.
|
static AssemblyName |
GetAssemblyName(java.lang.String assemblyPath)
Invokes the .NET member GetAssemblyName.
|
static AssemblyLoadContext |
getCurrentContextualReflectionContext()
Gets the value of the .NET property CurrentContextualReflectionContext.
|
static AssemblyLoadContext |
getDefault()
Gets the value of the .NET property Default.
|
boolean |
getIsCollectible()
Gets the value of the .NET property IsCollectible.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
static AssemblyLoadContext |
GetLoadContext(Assembly assembly)
Invokes the .NET member GetLoadContext.
|
java.lang.String |
getName()
Gets the value of the .NET property Name.
|
Assembly |
LoadFromAssemblyName(AssemblyName assemblyName)
Invokes the .NET member LoadFromAssemblyName.
|
Assembly |
LoadFromAssemblyPath(java.lang.String assemblyPath)
Invokes the .NET member LoadFromAssemblyPath.
|
Assembly |
LoadFromNativeImagePath(java.lang.String nativeImagePath,
java.lang.String assemblyPath)
Invokes the .NET member LoadFromNativeImagePath.
|
Assembly |
LoadFromStream(Stream assembly)
Invokes the .NET member LoadFromStream.
|
Assembly |
LoadFromStream(Stream assembly,
Stream assemblySymbols)
Invokes the .NET member LoadFromStream.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
SetProfileOptimizationRoot(java.lang.String directoryPath)
Invokes the .NET member SetProfileOptimizationRoot.
|
void |
StartProfileOptimization(java.lang.String profile)
Invokes the .NET member StartProfileOptimization.
|
void |
Unload()
Invokes the .NET member Unload.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public AssemblyLoadContext()
throws java.lang.Throwable
java.lang.Throwablepublic AssemblyLoadContext(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic AssemblyLoadContext(java.lang.String name,
boolean isCollectible)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
IndexOutOfRangeException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException
name - the argument of type java.lang.StringisCollectible - the argument of type booleanjava.lang.Throwable - if the .NET constructor failsNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic static AssemblyLoadContext cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into AssemblyLoadContext, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedAssemblyLoadContext instancejava.lang.Throwable - in case of error during cast operationpublic static IEnumerable_1 getAll() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic IEnumerable_1 getAssemblies() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static AssemblyName GetAssemblyName(java.lang.String assemblyPath) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, TypeLoadException, MissingMethodException
assemblyPath - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itTypeLoadException - if the .NET member raises itMissingMethodException - if the .NET member raises itpublic static AssemblyLoadContext getCurrentContextualReflectionContext() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static AssemblyLoadContext getDefault() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsCollectible()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic static AssemblyLoadContext GetLoadContext(Assembly assembly) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
assembly - the argument of type Assemblyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic java.lang.String getName()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Assembly LoadFromAssemblyName(AssemblyName assemblyName) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
assemblyName - the argument of type AssemblyNamejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic Assembly LoadFromAssemblyPath(java.lang.String assemblyPath) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException
assemblyPath - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic Assembly LoadFromNativeImagePath(java.lang.String nativeImagePath, java.lang.String assemblyPath) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException
nativeImagePath - the argument of type java.lang.StringassemblyPath - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic Assembly LoadFromStream(Stream assembly) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ArrayTypeMismatchException, PlatformNotSupportedException, BadImageFormatException, IOException
assembly - the argument of type Streamjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itBadImageFormatException - if the .NET member raises itIOException - if the .NET member raises itpublic Assembly LoadFromStream(Stream assembly, Stream assemblySymbols) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, BadImageFormatException, IOException
assembly - the argument of type StreamassemblySymbols - the argument of type Streamjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itBadImageFormatException - if the .NET member raises itIOException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic void SetProfileOptimizationRoot(java.lang.String directoryPath)
throws java.lang.Throwable
directoryPath - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void StartProfileOptimization(java.lang.String profile)
throws java.lang.Throwable
profile - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Unload()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises it