AssemblyLoadContext.ContextualReflectionScope 結構

定義

提供專供 EnterContextualReflection() 使用的傳回型別。 原定在 using 區塊中作為 IDisposable 使用。

public: value class AssemblyLoadContext::ContextualReflectionScope : IDisposable
public struct AssemblyLoadContext.ContextualReflectionScope : IDisposable
type AssemblyLoadContext.ContextualReflectionScope = struct
    interface IDisposable
Public Structure AssemblyLoadContext.ContextualReflectionScope
Implements IDisposable
繼承
AssemblyLoadContext.ContextualReflectionScope
實作

備註

這是 API 的實作 EnterContextualReflection 詳細資料。 這是結構,可避免堆積配置。 必須公開才能避免 Boxing。

方法

Dispose()

CurrentContextualReflectionContext 設定為傳回此執行個體之 EnterContextualReflection() 呼叫前面的值。

適用於