Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AssemblyBuilder::ReflectionOnly Property

 

Gets a value indicating whether the dynamic assembly is in the reflection-only context.

Namespace:   System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public:
property bool ReflectionOnly {
	virtual bool get() override;
}

Property Value

Type: System::Boolean

true 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.

System_CAPS_noteNote

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
Return to top
Show:
© 2017 Microsoft