AssemblyLoadContext.EnterContextualReflection メソッド

定義

オーバーロード

EnterContextualReflection()

CurrentContextualReflectionContextthisAssemblyLoadContext に設定します。

EnterContextualReflection(Assembly)

アセンブリをロードした AssemblyLoadContextCurrentContextualReflectionContext を設定します。

EnterContextualReflection()

ソース:
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 の以前の値を復元するオブジェクトです。 これは、using ブロックの IDisposable として使用されることを意図しています。

注釈

詳細については、「 .NET Core の AssemblyLoadContext.CurrentContextualReflectionContext デザイン ドキュメント」を参照してください。

適用対象

EnterContextualReflection(Assembly)

ソース:
AssemblyLoadContext.cs
ソース:
AssemblyLoadContext.cs
ソース:
AssemblyLoadContext.cs

アセンブリをロードした AssemblyLoadContextCurrentContextualReflectionContext を設定します。

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 の以前の値を復元するオブジェクトです。 これは、using ブロックの IDisposable として使用されることを意図しています。

注釈

詳細については、「 .NET Core の AssemblyLoadContext.CurrentContextualReflectionContext デザイン ドキュメント」を参照してください。

適用対象