AssemblyLoadContext.EnterContextualReflection 方法

定義

多載

EnterContextualReflection()

來源:
AssemblyLoadContext.cs
來源:
AssemblyLoadContext.cs
來源:
AssemblyLoadContext.cs
來源:
AssemblyLoadContext.cs
來源:
AssemblyLoadContext.cs
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 中的 AssemblyLoadContext.CurrentContextualReflectionContext 設計文件。

適用於

EnterContextualReflection(Assembly)

來源:
AssemblyLoadContext.cs
來源:
AssemblyLoadContext.cs
來源:
AssemblyLoadContext.cs
來源:
AssemblyLoadContext.cs
來源:
AssemblyLoadContext.cs
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 中的 AssemblyLoadContext.CurrentContextualReflectionContext 設計文件。

適用於