AssemblyLoadContext.EnterContextualReflection AssemblyLoadContext.EnterContextualReflection AssemblyLoadContext.EnterContextualReflection AssemblyLoadContext.EnterContextualReflection Method

定義

オーバーロード

EnterContextualReflection() EnterContextualReflection() EnterContextualReflection() EnterContextualReflection()

CurrentContextualReflectionContextthisAssemblyLoadContext に設定します。Sets CurrentContextualReflectionContext to thisAssemblyLoadContext.

EnterContextualReflection(Assembly) EnterContextualReflection(Assembly) EnterContextualReflection(Assembly) EnterContextualReflection(Assembly)

アセンブリをロードした AssemblyLoadContextCurrentContextualReflectionContext を設定します。Sets CurrentContextualReflectionContext to the AssemblyLoadContext which loaded the assembly.

EnterContextualReflection() EnterContextualReflection() EnterContextualReflection() EnterContextualReflection()

CurrentContextualReflectionContextthisAssemblyLoadContext に設定します。Sets CurrentContextualReflectionContext to thisAssemblyLoadContext.

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 の以前の値を復元するオブジェクトです。An object to restore the previous value of CurrentContextualReflectionContext. これは、using ブロックの IDisposable として使用されることを意図しています。It is intended to be used as an IDisposable in a using block.

注釈

詳細については、「 Assemblyloadcontext design doc in .Net Core」を参照してください。For more information, see AssemblyLoadContext.CurrentContextualReflectionContext design doc in .NET Core.

EnterContextualReflection(Assembly) EnterContextualReflection(Assembly) EnterContextualReflection(Assembly) EnterContextualReflection(Assembly)

アセンブリをロードした AssemblyLoadContextCurrentContextualReflectionContext を設定します。Sets CurrentContextualReflectionContext to the AssemblyLoadContext which loaded the 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 Assembly Assembly Assembly

要求された AssemblyLoadContext インスタンスを決定するのに使用されるアセンブリです。The assembly that is used to determine the requested AssemblyLoadContext instance.

戻り値

CurrentContextualReflectionContext の以前の値を復元するオブジェクトです。An object to restore the previous value of CurrentContextualReflectionContext. これは、using ブロックの IDisposable として使用されることを意図しています。It is intended to be used as an IDisposable in a using block.

注釈

詳細については、「 Assemblyloadcontext design doc in .Net Core」を参照してください。For more information, see AssemblyLoadContext.CurrentContextualReflectionContext design doc in .NET Core.

適用対象