System.Reflection.ReflectionTypeLoadException
E697556
System.Reflection.ReflectionTypeLoadException is a .NET exception type thrown when one or more types in an assembly cannot be loaded during reflection, providing details about the specific loader failures.
Statements (50)
| Predicate | Object |
|---|---|
| instanceOf |
.NET exception type
ⓘ
System.Exception subclass ⓘ System.SystemException subclass ⓘ |
| assembly |
System.Runtime
NERFINISHED
ⓘ
mscorlib NERFINISHED ⓘ |
| baseClass |
System.Exception
NERFINISHED
ⓘ
System.Object ⓘ System.SystemException ⓘ |
| cause |
missing assembly dependencies
ⓘ
security or permission issues during type loading ⓘ type initialization exceptions ⓘ type load failures due to version conflicts ⓘ |
| CLSCompliant | true ⓘ |
| constructor |
ReflectionTypeLoadException(Type[] classes, Exception[] exceptions)
NERFINISHED
ⓘ
ReflectionTypeLoadException(Type[] classes, Exception[] exceptions, string message) ⓘ |
| documentation | documented on Microsoft Learn in the System.Reflection namespace reference ⓘ |
| feature |
ToString() output includes loader exception information
ⓘ
aggregates multiple loader exceptions in LoaderExceptions property ⓘ provides partially loaded Types array ⓘ |
| inheritsMembersFrom |
System.Exception
NERFINISHED
ⓘ
System.Object NERFINISHED ⓘ System.SystemException NERFINISHED ⓘ |
| introducedIn | .NET Framework 1.0 NERFINISHED ⓘ |
| isPublic | true ⓘ |
| isSerializable | true ⓘ |
| namespace | System.Reflection NERFINISHED ⓘ |
| overrides |
System.Exception.Message
NERFINISHED
ⓘ
System.Exception.ToString() ⓘ |
| platform |
.NET 5+
ⓘ
.NET Core NERFINISHED ⓘ .NET Framework NERFINISHED ⓘ |
| property |
Exception InnerException
ⓘ
Exception[] LoaderExceptions ⓘ IDictionary Data ⓘ Type[] Types ⓘ string HelpLink ⓘ string Message ⓘ string Source ⓘ string StackTrace ⓘ |
| sealed | false ⓘ |
| serializationSupport | implements ISerializable via base class ⓘ |
| summary | Exception thrown when one or more types in an assembly cannot be loaded during reflection. ⓘ |
| threadSafety | exception instances are not guaranteed to be thread-safe ⓘ |
| thrownBy |
Assembly.DefinedTypes (indirectly, via type loading)
ⓘ
Assembly.GetTypes() ⓘ Module.GetTypes() ⓘ reflection-based APIs that attempt to load all types in an assembly ⓘ |
| usagePattern |
catch when calling Assembly.GetTypes to inspect all types in an assembly
ⓘ
inspect LoaderExceptions to diagnose individual type load failures ⓘ |
| usedFor | reporting type loading failures during reflection-based operations. ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.