Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Assembly.ReflectionOnly Property

Definition

Namespace:
System.Reflection
Assemblies:
netstandard.dll, System.Runtime.dll
Assembly:
System.Runtime.dll
Assembly:
mscorlib.dll
Assembly:
netstandard.dll
Source:
Assembly.cs
Source:
Assembly.cs
Source:
Assembly.cs
Source:
Assembly.cs
Source:
Assembly.cs

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 Boolean value indicating whether this assembly was loaded into the reflection-only context.

public:
 virtual property bool ReflectionOnly { bool get(); };
public virtual bool ReflectionOnly { get; }
[System.Runtime.InteropServices.ComVisible(false)]
public virtual bool ReflectionOnly { get; }
member this.ReflectionOnly : bool
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.ReflectionOnly : bool
Public Overridable ReadOnly Property ReflectionOnly As Boolean

Property Value

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

Attributes

Remarks

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.

Applies to


Feedback

Was this page helpful?