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; }
static member CurrentContextualReflectionContext : System.Runtime.Loader.AssemblyLoadContext
Public Shared ReadOnly Property CurrentContextualReflectionContext As AssemblyLoadContext

屬性值

由最近一次呼叫到EnterContextualReflection()的集合。AssemblyLoadContext 這個值可以是 null。 該值儲存在 AsyncLocal<T>中,因此在非同步上下文中值是唯一的。

備註

更多資訊請參閱 .NET Core 中的 AssemblyLoadContext.CurrentContextualReflectionContext 設計文件。

適用於