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
| Nama | Deskripsi |
|---|---|
| EnterContextualReflection() |
Atur CurrentContextualReflectionContext ke |
| EnterContextualReflection(Assembly) |
CurrentContextualReflectionContext Mengatur ke AssemblyLoadContext yang memuat rakitan. |
EnterContextualReflection()
- Sumber:
- AssemblyLoadContext.cs
- Sumber:
- AssemblyLoadContext.cs
- Sumber:
- AssemblyLoadContext.cs
- Sumber:
- AssemblyLoadContext.cs
- Sumber:
- AssemblyLoadContext.cs
Atur CurrentContextualReflectionContext ke thisAssemblyLoadContext.
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 blok using .
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
- Sumber:
- AssemblyLoadContext.cs
- Sumber:
- AssemblyLoadContext.cs
CurrentContextualReflectionContext Mengatur ke AssemblyLoadContext yang memuat rakitan.
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 blok using .
Keterangan
Untuk informasi selengkapnya, lihat dokumen desain AssemblyLoadContext.CurrentContextualReflectionContext di .NET Core.