AssemblyLoadContext.EnterContextualReflection 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
EnterContextualReflection()
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
傳回
一個物件用來恢復先前的 CurrentContextualReflectionContext值。 它設計為作為方塊內IDisposable的使用using。
備註
更多資訊請參閱 .NET Core 中的
適用於
EnterContextualReflection(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
參數
- activating
- Assembly
用來決定所請求 AssemblyLoadContext 實例的組合語言。
傳回
一個物件用來恢復先前的 CurrentContextualReflectionContext值。 它設計為作為方塊內IDisposable的使用using。
備註
更多資訊請參閱 .NET Core 中的