AssemblyLoadContext.GetLoadContext(Assembly) Méthode

Définition

Obtient le AssemblyLoadContext contenant le Assembly spécifié.Gets the AssemblyLoadContext containing the specified Assembly.

public:
 static System::Runtime::Loader::AssemblyLoadContext ^ GetLoadContext(System::Reflection::Assembly ^ assembly);
public static System.Runtime.Loader.AssemblyLoadContext? GetLoadContext (System.Reflection.Assembly assembly);
public static System.Runtime.Loader.AssemblyLoadContext GetLoadContext (System.Reflection.Assembly assembly);
static member GetLoadContext : System.Reflection.Assembly -> System.Runtime.Loader.AssemblyLoadContext
Public Shared Function GetLoadContext (assembly As Assembly) As AssemblyLoadContext

Paramètres

assembly
Assembly

Assembly.An assembly.

Retours

AssemblyLoadContext

Contexte de chargement d’assembly contenant assembly.The assembly load context containing the assembly. Si assembly n’est pas fourni par le runtime, cette méthode retourne null.If the assembly is not provided by the runtime, this method returns null.

Exceptions

assembly a la valeur null.assembly is null.

S’applique à