AssemblyLoadContext.EnterContextualReflection Metoda

Definicja

Przeciążenia

EnterContextualReflection()

Ustawia CurrentContextualReflectionContext wartość thisAssemblyLoadContext.

EnterContextualReflection(Assembly)

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

EnterContextualReflection()

Źródło:
AssemblyLoadContext.cs
Źródło:
AssemblyLoadContext.cs
Źródło:
AssemblyLoadContext.cs
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

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.

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