AssemblyLoadContext.EnterContextualReflection Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Sobrecargas
| Name | Description |
|---|---|
| EnterContextualReflection() |
Define CurrentContextualReflectionContext para |
| EnterContextualReflection(Assembly) |
Define CurrentContextualReflectionContext para o AssemblyLoadContext que carregou a montagem. |
EnterContextualReflection()
- Origem:
- AssemblyLoadContext.cs
- Origem:
- AssemblyLoadContext.cs
- Origem:
- AssemblyLoadContext.cs
- Origem:
- AssemblyLoadContext.cs
- Origem:
- AssemblyLoadContext.cs
Define CurrentContextualReflectionContext para thisAssemblyLoadContext.
public:
System::Runtime::Loader::AssemblyLoadContext::ContextualReflectionScope EnterContextualReflection();
public System.Runtime.Loader.AssemblyLoadContext.ContextualReflectionScope EnterContextualReflection();
member this.EnterContextualReflection : unit -> System.Runtime.Loader.AssemblyLoadContext.ContextualReflectionScope
Public Function EnterContextualReflection () As AssemblyLoadContext.ContextualReflectionScope
Devoluções
Um objeto para restaurar o valor anterior de CurrentContextualReflectionContext. Destina-se a ser usado como IDisposable um bloco interno using .
Observações
Para mais informações, consulte AssemblyLoadContext.CurrentContextualReflectionContext document de design em .NET Core.
Aplica-se a
EnterContextualReflection(Assembly)
- Origem:
- AssemblyLoadContext.cs
- Origem:
- AssemblyLoadContext.cs
- Origem:
- AssemblyLoadContext.cs
- Origem:
- AssemblyLoadContext.cs
- Origem:
- AssemblyLoadContext.cs
Define CurrentContextualReflectionContext para o AssemblyLoadContext que carregou a montagem.
public:
static System::Runtime::Loader::AssemblyLoadContext::ContextualReflectionScope EnterContextualReflection(System::Reflection::Assembly ^ activating);
public static System.Runtime.Loader.AssemblyLoadContext.ContextualReflectionScope EnterContextualReflection(System.Reflection.Assembly? activating);
static member EnterContextualReflection : System.Reflection.Assembly -> System.Runtime.Loader.AssemblyLoadContext.ContextualReflectionScope
Public Shared Function EnterContextualReflection (activating As Assembly) As AssemblyLoadContext.ContextualReflectionScope
Parâmetros
- activating
- Assembly
A montagem usada para determinar a instância solicitada AssemblyLoadContext .
Devoluções
Um objeto para restaurar o valor anterior de CurrentContextualReflectionContext. Destina-se a ser usado como IDisposable um bloco interno using .
Observações
Para mais informações, consulte AssemblyLoadContext.CurrentContextualReflectionContext document de design em .NET Core.