AssemblyLoadContext.EnterContextualReflection Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
| Nome | Description |
|---|---|
| EnterContextualReflection() |
Define CurrentContextualReflectionContext como |
| EnterContextualReflection(Assembly) |
Define CurrentContextualReflectionContext para o AssemblyLoadContext que carregou o assembly. |
EnterContextualReflection()
- Origem:
- AssemblyLoadContext.cs
- Origem:
- AssemblyLoadContext.cs
- Origem:
- AssemblyLoadContext.cs
- Origem:
- AssemblyLoadContext.cs
- Origem:
- AssemblyLoadContext.cs
Define CurrentContextualReflectionContext como 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
Retornos
Um objeto para restaurar o valor anterior de CurrentContextualReflectionContext. Ele deve ser usado como um IDisposable bloco using .
Comentários
Para obter mais informações, consulte AssemblyLoadContext.CurrentContextualReflectionContext design doc in .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 o assembly.
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
O assembly usado para determinar a instância solicitada AssemblyLoadContext .
Retornos
Um objeto para restaurar o valor anterior de CurrentContextualReflectionContext. Ele deve ser usado como um IDisposable bloco using .
Comentários
Para obter mais informações, consulte AssemblyLoadContext.CurrentContextualReflectionContext design doc in .NET Core.