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
実装

注釈

これは、 EnterContextualReflection API の実装の詳細です。 ヒープ割り当てを回避するための構造体です。 ボックス化を回避するには、パブリックである必要があります。

メソッド

名前 説明
Dispose()

CurrentContextualReflectionContext、このインスタンスを返したEnterContextualReflection()の呼び出しの前の値に設定します。

適用対象