AssemblyLoadContext.EnterContextualReflection Methode

Definition

Überlädt

EnterContextualReflection()

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

Gibt zurück

Ein Objekt zum Wiederherstellen des vorherigen Werts von CurrentContextualReflectionContext. Sie soll als IDisposable in einem using Block verwendet werden.

Hinweise

Weitere Informationen finden Sie unter AssemblyLoadContext.CurrentContextualReflectionContext design doc in .NET Core.

Gilt für:

EnterContextualReflection(Assembly)

Quelle:
AssemblyLoadContext.cs
Quelle:
AssemblyLoadContext.cs
Quelle:
AssemblyLoadContext.cs
Quelle:
AssemblyLoadContext.cs
Quelle:
AssemblyLoadContext.cs

Legt den Wert CurrentContextualReflectionContext fest, der AssemblyLoadContext die Assembly geladen hat.

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

Parameter

activating
Assembly

Die Assembly, die verwendet wird, um die angeforderte AssemblyLoadContext Instanz zu bestimmen.

Gibt zurück

Ein Objekt zum Wiederherstellen des vorherigen Werts von CurrentContextualReflectionContext. Sie soll als IDisposable in einem using Block verwendet werden.

Hinweise

Weitere Informationen finden Sie unter AssemblyLoadContext.CurrentContextualReflectionContext design doc in .NET Core.

Gilt für: