AssemblyLoadContext.EnterContextualReflection Metodo

Definizione

Overload

EnterContextualReflection()

Origine:
AssemblyLoadContext.cs
Origine:
AssemblyLoadContext.cs
Origine:
AssemblyLoadContext.cs
Origine:
AssemblyLoadContext.cs
Origine:
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

Valori restituiti

Oggetto per ripristinare il valore precedente di CurrentContextualReflectionContext. Deve essere usato come IDisposable in un blocco using.

Commenti

Per altre informazioni, vedere AssemblyLoadContext.CurrentContextualReflectionContext design doc in .NET Core.

Si applica a

EnterContextualReflection(Assembly)

Origine:
AssemblyLoadContext.cs
Origine:
AssemblyLoadContext.cs
Origine:
AssemblyLoadContext.cs
Origine:
AssemblyLoadContext.cs
Origine:
AssemblyLoadContext.cs

Imposta CurrentContextualReflectionContext sull'oggetto AssemblyLoadContext che ha caricato l'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

Parametri

activating
Assembly

Assembly utilizzato per determinare l'istanza richiesta AssemblyLoadContext .

Valori restituiti

Oggetto per ripristinare il valore precedente di CurrentContextualReflectionContext. Deve essere usato come IDisposable in un blocco using.

Commenti

Per altre informazioni, vedere AssemblyLoadContext.CurrentContextualReflectionContext design doc in .NET Core.

Si applica a