AssemblyLoadContext.EnterContextualReflection Metoda

Definice

Přetížení

EnterContextualReflection()

Nastaví CurrentContextualReflectionContext na thisAssemblyLoadContext.

EnterContextualReflection(Assembly)

Nastaví CurrentContextualReflectionContext na ten AssemblyLoadContext , který načetl sestavení.

EnterContextualReflection()

Zdroj:
AssemblyLoadContext.cs
Zdroj:
AssemblyLoadContext.cs
Zdroj:
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

Návraty

Objekt pro obnovení předchozí hodnoty objektu CurrentContextualReflectionContext. Je určen k použití jako IDisposable blok using .

Poznámky

Další informace najdete v dokumentaci k návrhu AssemblyLoadContext.CurrentContextualReflectionContext v .NET Core.

Platí pro

EnterContextualReflection(Assembly)

Zdroj:
AssemblyLoadContext.cs
Zdroj:
AssemblyLoadContext.cs
Zdroj:
AssemblyLoadContext.cs

Nastaví CurrentContextualReflectionContext na ten AssemblyLoadContext , který načetl sestavení.

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

Sestavení, které se používá k určení požadované AssemblyLoadContext instance.

Návraty

Objekt pro obnovení předchozí hodnoty objektu CurrentContextualReflectionContext. Je určen k použití jako IDisposable blok using .

Poznámky

Další informace najdete v dokumentaci k návrhu AssemblyLoadContext.CurrentContextualReflectionContext v .NET Core.

Platí pro