AssemblyLoadContext.EnterContextualReflection Method     
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| EnterContextualReflection() | Sets CurrentContextualReflectionContext to  | 
| EnterContextualReflection(Assembly) | Sets CurrentContextualReflectionContext to the AssemblyLoadContext that loaded the assembly. | 
EnterContextualReflection()
- Source:
- AssemblyLoadContext.cs
- Source:
- AssemblyLoadContext.cs
- Source:
- AssemblyLoadContext.cs
- Source:
- AssemblyLoadContext.cs
Sets CurrentContextualReflectionContext to thisAssemblyLoadContext.
public:
 System::Runtime::Loader::AssemblyLoadContext::ContextualReflectionScope EnterContextualReflection();public System.Runtime.Loader.AssemblyLoadContext.ContextualReflectionScope EnterContextualReflection();member this.EnterContextualReflection : unit -> System.Runtime.Loader.AssemblyLoadContext.ContextualReflectionScopePublic Function EnterContextualReflection () As AssemblyLoadContext.ContextualReflectionScopeReturns
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
- Source:
- AssemblyLoadContext.cs
Sets CurrentContextualReflectionContext to the AssemblyLoadContext that 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.ContextualReflectionScopePublic Shared Function EnterContextualReflection (activating As Assembly) As AssemblyLoadContext.ContextualReflectionScopeParameters
- 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.