AssemblyLoadContext.EnterContextualReflection Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
EnterContextualReflection() |
Mengatur CurrentContextualReflectionContext ke |
EnterContextualReflection(Assembly) |
CurrentContextualReflectionContext Mengatur ke yang AssemblyLoadContext memuat assembly. |
EnterContextualReflection()
- Sumber:
- AssemblyLoadContext.cs
- Sumber:
- AssemblyLoadContext.cs
- Sumber:
- AssemblyLoadContext.cs
Mengatur CurrentContextualReflectionContext ke this
AssemblyLoadContext.
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
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk