AssemblyLoadContext.ContextualReflectionScope 結構
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供一種專門 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
- 繼承
- 實作
備註
這是 API 的實作細節 EnterContextualReflection 。 它是一個結構體,以避免堆積配置。 為了避免拳擊,必須公開進行。
方法
| 名稱 | Description |
|---|---|
| Dispose() |
將 設定 CurrentContextualReflectionContext 為回傳此實例的呼叫 EnterContextualReflection() 前的值。 |