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.

All labels observed (1)

Label Occurrences
System.Reflection.TargetException canonical 1

How this entity was disambiguated

Statements (45)

Predicate Object
instanceOf .NET exception type
class
assembly System.Runtime
mscorlib
linked to: mscorlib.dll
baseClass System.ApplicationException
canBeCaughtBy catch (System.Exception)
catch (System.Reflection.TargetException)
category runtime error
errorCondition invalid target object for reflected member
hasConstructor TargetException()
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
System.SystemException
introducedIn .NET Framework 1.0
linked to: .NET Framework
isAbstract false
isCLSCompliant true
isPublic true
isSealed true
isSerializable true
namespace System.Reflection
platform .NET 5+
.NET Core
.NET Framework
relatedTo System.Reflection.TargetInvocationException
System.Reflection.TargetParameterCountException
thrownBy System.Reflection.ConstructorInfo.Invoke
System.Reflection.FieldInfo.GetValue
System.Reflection.FieldInfo.SetValue
System.Reflection.MethodInfo.Invoke
System.Reflection.PropertyInfo.GetValue
System.Reflection.PropertyInfo.SetValue
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

How these facts were elicited

Referenced by (1)

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

System.Reflection containsType System.Reflection.TargetException