AssemblyLoadContext.ContextualReflectionScope Struktur

Definition

Stellt einen Rückgabetyp bereit, der exklusiv für EnterContextualReflection() verwendet wird. Ist für die Verwendung als ein IDisposable in einem using-Block vorgesehen.

public: value class AssemblyLoadContext::ContextualReflectionScope : IDisposable
public struct AssemblyLoadContext.ContextualReflectionScope : IDisposable
type AssemblyLoadContext.ContextualReflectionScope = struct
    interface IDisposable
Public Structure AssemblyLoadContext.ContextualReflectionScope
Implements IDisposable
Vererbung
AssemblyLoadContext.ContextualReflectionScope
Implementiert

Hinweise

Dies ist ein Implementierungsdetails der EnterContextualReflection APIs. Es ist eine Struktur, um die Heap-Zuordnung zu vermeiden. Es ist erforderlich, öffentlich zu sein, um boxen zu vermeiden.

Methoden

Dispose()

Legt CurrentContextualReflectionContext auf den Wert vor dem Aufruf von EnterContextualReflection() fest, der diese Instanz zurückgegeben hat.

Gilt für