AssemblyLoadContext.GetLoadContext(Assembly) Método

Definição

Obtém o AssemblyLoadContext que contém o Assembly especificado.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);
static member GetLoadContext : System.Reflection.Assembly -> System.Runtime.Loader.AssemblyLoadContext
Public Shared Function GetLoadContext (assembly As Assembly) As AssemblyLoadContext

Parâmetros

assembly
Assembly

Um assembly.An assembly.

Retornos

O contexto de carregamento do assembly que contém o assembly.The assembly load context containing the assembly. Se o assembly não for fornecido pelo runtime, esse método retornará nulo.If the assembly is not provided by the runtime, this method returns null.

Exceções

assembly é null.assembly is null.

Aplica-se a