AssemblyLoadContext.CurrentContextualReflectionContext AssemblyLoadContext.CurrentContextualReflectionContext AssemblyLoadContext.CurrentContextualReflectionContext AssemblyLoadContext.CurrentContextualReflectionContext Property

定义

获取由最近调用 EnterContextualReflection() 而设置的 AssemblyLoadContextGets the AssemblyLoadContext set by the most recent call to EnterContextualReflection().

public:
 static property System::Runtime::Loader::AssemblyLoadContext ^ CurrentContextualReflectionContext { System::Runtime::Loader::AssemblyLoadContext ^ get(); };
public static System.Runtime.Loader.AssemblyLoadContext CurrentContextualReflectionContext { get; }
member this.CurrentContextualReflectionContext : System.Runtime.Loader.AssemblyLoadContext
Public Shared ReadOnly Property CurrentContextualReflectionContext As AssemblyLoadContext

属性值

AssemblyLoadContext最近对的EnterContextualReflection()调用设置的。The AssemblyLoadContext set by the most recent call to EnterContextualReflection(). 此值可为 nullThis value can be null. 值存储在AsyncLocal<T>中, 因此, 每个异步上下文的值都是唯一的。The value is stored in an AsyncLocal<T>, so the value is unique per asynchronous context.

注解

有关详细信息, 请参阅AssemblyLoadContext. CurrentContextualReflectionContext design doc in .Net CoreFor more information, see AssemblyLoadContext.CurrentContextualReflectionContext design doc in .NET Core.

适用于