Compartir vía


AssemblyLoadContext.GetLoadContext(Assembly) Método

Definición

Obtiene el elemento AssemblyLoadContext que contiene el elemento Assembly especificado.

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

Parámetros

assembly
Assembly

Ensamblado.

Devoluciones

Contexto de carga de ensamblado que contiene el elemento assembly. Si el runtime no proporciona assembly, este método devuelve NULL.

Excepciones

assembly es null.

Se aplica a