AssemblyLoadContext.ContextualReflectionScope AssemblyLoadContext.ContextualReflectionScope AssemblyLoadContext.ContextualReflectionScope AssemblyLoadContext.ContextualReflectionScope Struct

定義

提供專供 EnterContextualReflection() 使用的傳回型別。Provides a return type used exclusively for EnterContextualReflection(). 原定在 using 區塊中作為 IDisposable 使用。It is intended to be used as an IDisposable in a using block.

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

備註

#

這是EnterContextualReflection api 的執行詳細資料。This is an implementation detail of the EnterContextualReflection APIs. 這是一個結構, 可避免堆積配置。It is a struct, to avoid heap allocation. 必須是公用, 才能避免進行裝箱。It is required to be public to avoid boxing.

方法

Dispose() Dispose() Dispose() Dispose()

CurrentContextualReflectionContext 設定為傳回此執行個體之 EnterContextualReflection() 呼叫前面的值。Sets CurrentContextualReflectionContext to the value preceding the call to EnterContextualReflection() which returned this instance.

適用於