AssemblyLoadContext.EnterContextualReflection Metode

Definisi

Overload

EnterContextualReflection()

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

Berlaku untuk