AssemblyLoadContext.EnterContextualReflection Metoda

Definicja

Przeciążenia

EnterContextualReflection()

Źródło:
AssemblyLoadContext.cs
Źródło:
AssemblyLoadContext.cs
Źródło:
AssemblyLoadContext.cs
C#
public System.Runtime.Loader.AssemblyLoadContext.ContextualReflectionScope EnterContextualReflection ();

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

EnterContextualReflection(Assembly)

Źródło:
AssemblyLoadContext.cs
Źródło:
AssemblyLoadContext.cs
Źródło:
AssemblyLoadContext.cs

Ustawia CurrentContextualReflectionContext zestaw, który AssemblyLoadContext załadował zestaw.

C#
public static System.Runtime.Loader.AssemblyLoadContext.ContextualReflectionScope EnterContextualReflection (System.Reflection.Assembly? activating);

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