ReflectionOnly Property

Assembly.ReflectionOnly Property

 

Gets a Boolean value indicating whether this assembly was loaded into the reflection-only context.

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

[ComVisibleAttribute(false)]
public virtual bool ReflectionOnly { get; }

Property Value

Type: System.Boolean

true if the assembly was loaded into the reflection-only context, rather than the execution context; otherwise, false.

If an assembly has been loaded into the reflection-only context, using the ReflectionOnlyLoad method, you cannot execute code in the assembly. To execute code, the assembly must be loaded into the execution context.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft