AssemblyBuilder.ReflectionOnly Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value indicating whether the dynamic assembly is in the reflection-only context.
public:
virtual property bool ReflectionOnly { bool get(); };
public override bool ReflectionOnly { get; }
member this.ReflectionOnly : bool
Public Overrides ReadOnly Property ReflectionOnly As Boolean
Property Value
true
if the dynamic assembly is in the reflection-only context; otherwise, false
.
Remarks
To emit a dynamic assembly in the reflection-only context, specify AssemblyBuilderAccess.ReflectionOnly when you create the AssemblyBuilder. If a dynamic assembly is emitted in the reflection-only context, its code cannot be executed.
Note
After you have saved a dynamic assembly to disk, you can use the Assembly.ReflectionOnlyLoad method to load the completed assembly into the reflection-only context. However, the assembly can no longer be modified.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om