AssemblyBuilder::ReflectionOnly Property
.NET Framework (current version)
Gets a value indicating whether the dynamic assembly is in the reflection-only context.
Assembly: mscorlib (in mscorlib.dll)
Property Value
Type: System::Booleantrue if the dynamic assembly is in the reflection-only context; otherwise, false.
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. |
.NET Framework
Available since 4.0
Available since 4.0
Show:
