AssemblyLoadContext.CurrentContextualReflectionContext 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取由最近调用 EnterContextualReflection() 而设置的 AssemblyLoadContext。
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()设置的 。 此值可为 null
。 该值存储在一个中,因此每个异步上下文的值都是唯一 AsyncLocal<T>的。
注解
有关详细信息,请参阅 .NET Core 中的 AssemblyLoadContext.CurrentContextualReflectionContext 设计文档。