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 which loaded the assembly. |
EnterContextualReflection()
- Source:
- AssemblyLoadContext.cs
- Source:
- AssemblyLoadContext.cs
- Source:
- AssemblyLoadContext.cs
Sets CurrentContextualReflectionContext to 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
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
Обратна връзка
https://aka.ms/ContentUserFeedback.
Очаквайте скоро: През цялата 2024 г. постепенно ще отстраняваме проблемите в GitHub като механизъм за обратна връзка за съдържание и ще го заменим с нова система за обратна връзка. За повече информация вижте:Подаване и преглед на обратна връзка за