AssemblyLoadContext.GetLoadContext(Assembly) Método

Definição

Obtém o AssemblyLoadContext que contém o 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

Um assembly.

Retornos

O contexto de carregamento do assembly que contém o assembly. Se o assembly não for fornecido pelo runtime, esse método retornará nulo.

Exceções

assembly é null.

Aplica-se a