AssemblyLoadContext.ContextualReflectionScope 結構

定義

提供一種專門 EnterContextualReflection()用於 的回傳類型。 它設計為作為方塊內IDisposable的使用using

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 。 它是一個結構體,以避免堆積配置。 為了避免拳擊,必須公開進行。

方法

名稱 Description
Dispose()

將 設定 CurrentContextualReflectionContext 為回傳此實例的呼叫 EnterContextualReflection() 前的值。

適用於