AssemblyLoadContext.EnterContextualReflection Metoda
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
EnterContextualReflection() |
Ustawia CurrentContextualReflectionContext wartość |
EnterContextualReflection(Assembly) |
Ustawia CurrentContextualReflectionContext zestaw, który AssemblyLoadContext załadował zestaw. |
- Źródło:
- AssemblyLoadContext.cs
- Źródło:
- AssemblyLoadContext.cs
- Źródło:
- AssemblyLoadContext.cs
Ustawia CurrentContextualReflectionContext wartość this
AssemblyLoadContext.
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
Zwraca
Obiekt umożliwiający przywrócenie poprzedniej wartości elementu CurrentContextualReflectionContext. Ma być używany jako blok IDisposableusing
.
Uwagi
Aby uzyskać więcej informacji, zobacz AssemblyLoadContext.CurrentContextualReflectionContext design doc in .NET Core (Dokument projektu AssemblyLoadContext.CurrentContextualReflectionContextContext) w dokumentach projektu .NET Core.
Dotyczy
.NET 9 i inne wersje
Produkt | Wersje |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
- Źródło:
- AssemblyLoadContext.cs
- Źródło:
- AssemblyLoadContext.cs
- Źródło:
- AssemblyLoadContext.cs
Ustawia CurrentContextualReflectionContext zestaw, który AssemblyLoadContext załadował zestaw.
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
Parametry
- activating
- Assembly
Zestaw używany do określania żądanego AssemblyLoadContext wystąpienia.
Zwraca
Obiekt umożliwiający przywrócenie poprzedniej wartości elementu CurrentContextualReflectionContext. Ma być używany jako blok IDisposableusing
.
Uwagi
Aby uzyskać więcej informacji, zobacz AssemblyLoadContext.CurrentContextualReflectionContext design doc in .NET Core (Dokument projektu AssemblyLoadContext.CurrentContextualReflectionContextContext) w dokumentach projektu .NET Core.
Dotyczy
.NET 9 i inne wersje
Produkt | Wersje |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
Opinia o produkcie .NET
.NET to projekt typu open source. Wybierz link, aby przekazać opinię: