AssemblyLoadContext.EnterContextualReflection Metode

Definisi

Overload

EnterContextualReflection()

Mengatur CurrentContextualReflectionContext ke thisAssemblyLoadContext.

EnterContextualReflection(Assembly)

CurrentContextualReflectionContext Mengatur ke yang AssemblyLoadContext memuat assembly.

EnterContextualReflection()

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

Mengembalikan

Objek untuk memulihkan nilai sebelumnya dari CurrentContextualReflectionContext. Ini dimaksudkan untuk digunakan sebagai IDisposable dalam using blok.

Keterangan

Untuk informasi selengkapnya, lihat dokumen desain AssemblyLoadContext.CurrentContextualReflectionContext di .NET Core.

Berlaku untuk

EnterContextualReflection(Assembly)

Sumber:
AssemblyLoadContext.cs
Sumber:
AssemblyLoadContext.cs
Sumber:
AssemblyLoadContext.cs

CurrentContextualReflectionContext Mengatur ke yang AssemblyLoadContext memuat assembly.

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

Rakitan yang digunakan untuk menentukan instans yang diminta AssemblyLoadContext .

Mengembalikan

Objek untuk memulihkan nilai sebelumnya dari CurrentContextualReflectionContext. Ini dimaksudkan untuk digunakan sebagai IDisposable dalam using blok.

Keterangan

Untuk informasi selengkapnya, lihat dokumen desain AssemblyLoadContext.CurrentContextualReflectionContext di .NET Core.

Berlaku untuk