AssemblyLoadContext.CurrentContextualReflectionContext 属性

定义

获取由最近调用 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

AssemblyLoadContext 最近调用 EnterContextualReflection()设置的 。 此值可为 null。 该值存储在一个中,因此每个异步上下文的值都是唯一 AsyncLocal<T>的。

注解

有关详细信息,请参阅 .NET Core 中的 AssemblyLoadContext.CurrentContextualReflectionContext 设计文档

适用于