แก้ไข

แชร์ผ่าน


AssemblyLoadContext.EnterContextualReflection Method

Definition

Overloads

EnterContextualReflection()

Sets CurrentContextualReflectionContext to thisAssemblyLoadContext.

EnterContextualReflection(Assembly)

Sets CurrentContextualReflectionContext to the AssemblyLoadContext which loaded the assembly.

EnterContextualReflection()

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

Returns

An object to restore the previous value of CurrentContextualReflectionContext. It is intended to be used as an IDisposable in a using block.

Remarks

For more information, see AssemblyLoadContext.CurrentContextualReflectionContext design doc in .NET Core.

Applies to

EnterContextualReflection(Assembly)

Source:
AssemblyLoadContext.cs
Source:
AssemblyLoadContext.cs
Source:
AssemblyLoadContext.cs

Sets CurrentContextualReflectionContext to the AssemblyLoadContext which loaded the 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

Parameters

activating
Assembly

The assembly that is used to determine the requested AssemblyLoadContext instance.

Returns

An object to restore the previous value of CurrentContextualReflectionContext. It is intended to be used as an IDisposable in a using block.

Remarks

For more information, see AssemblyLoadContext.CurrentContextualReflectionContext design doc in .NET Core.

Applies to