Assembly.ReflectionOnly Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: