System.Reflection.TargetException

E697557

System.Reflection.TargetException is a .NET exception type thrown when an attempt to invoke a method or access a member via reflection is made on an incompatible or incorrect target object.

Jump to: Statements Referenced by

Statements (45)

Predicate Object
instanceOf .NET exception type
class
assembly System.Runtime NERFINISHED
mscorlib NERFINISHED
baseClass System.ApplicationException NERFINISHED
canBeCaughtBy catch (System.Exception)
catch (System.Reflection.TargetException)
category runtime error
errorCondition invalid target object for reflected member
hasConstructor TargetException() NERFINISHED
TargetException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
TargetException(string message)
TargetException(string message, System.Exception innerException)
hasProperty HResult
HelpLink
InnerException
Message
Source
StackTrace
inheritsFrom System.Exception NERFINISHED
System.SystemException
introducedIn .NET Framework 1.0 NERFINISHED
isAbstract false
isCLSCompliant true
isPublic true
isSealed true
isSerializable true
namespace System.Reflection NERFINISHED
platform .NET 5+
.NET Core NERFINISHED
.NET Framework NERFINISHED
relatedTo System.Reflection.TargetInvocationException NERFINISHED
System.Reflection.TargetParameterCountException NERFINISHED
thrownBy System.Reflection.ConstructorInfo.Invoke
System.Reflection.FieldInfo.GetValue NERFINISHED
System.Reflection.FieldInfo.SetValue NERFINISHED
System.Reflection.MethodInfo.Invoke NERFINISHED
System.Reflection.PropertyInfo.GetValue NERFINISHED
System.Reflection.PropertyInfo.SetValue NERFINISHED
thrownWhen a field is accessed via reflection on an incompatible target object
a method is invoked via reflection on an incompatible target object
a property is accessed via reflection on an incompatible target object
the target object does not match the declaring type of the reflected member
the target object is null when an instance member is invoked
usageContext reflection

Referenced by (1)

Full triples — surface form annotated when it differs from this entity's canonical label.

System.Reflection containsType System.Reflection.TargetException