AssemblyLoadContext.EnterContextualReflection Metoda

Definicja

Przeciążenia

EnterContextualReflection()

Ustawia CurrentContextualReflectionContext wartość thisAssemblyLoadContext.

EnterContextualReflection(Assembly)

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

EnterContextualReflection()

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

AssemblyLoadContext.ContextualReflectionScope

Obiekt, który ma przywrócić poprzednią wartość .CurrentContextualReflectionContext Ma być używany jako blok IDisposable using .

Uwagi

Aby uzyskać więcej informacji, zobacz AssemblyLoadContext.CurrentContextualReflectionContextContext design doc in .NET Core (Dokument projektu AssemblyLoadContext.CurrentContextualReflectionContext) w programie .NET Core.

Dotyczy

EnterContextualReflection(Assembly)

Ustawia CurrentContextualReflectionContext element , 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

AssemblyLoadContext.ContextualReflectionScope

Obiekt, który ma przywrócić poprzednią wartość .CurrentContextualReflectionContext Ma być używany jako blok IDisposable using .

Uwagi

Aby uzyskać więcej informacji, zobacz AssemblyLoadContext.CurrentContextualReflectionContextContext design doc in .NET Core (Dokument projektu AssemblyLoadContext.CurrentContextualReflectionContext) w programie .NET Core.

Dotyczy